================
@@ -2878,6 +2878,35 @@ static bool 
interp__builtin_x86_insert_subvector(InterpState &S, CodePtr OpPC,
   return true;
 }
 
+static bool interp__builtin_byteshift(InterpState &S, CodePtr OpPC,
+                                      const CallExpr *Call, uint32_t BuiltinID,
+                                      bool isLeft) {
+  APSInt Amt = popToAPSInt(S, Call->getArg(1));
+  unsigned ShiftVal = (unsigned)Amt.getZExtValue() & 0xff;
+
+  const Pointer &VecPtr = S.Stk.pop<Pointer>();
+  const Pointer &Dst = S.Stk.peek<Pointer>();
+
+  unsigned NumElts = VecPtr.getNumElems();
----------------
tbaederr wrote:

```suggestion
  unsigned NumElems = VecPtr.getNumElems();
```

https://github.com/llvm/llvm-project/pull/157403
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to