Issue 154097
Summary When compiled with -O3, Clang generates results that do not match expectations, whereas GCC produces the expected output.
Labels clang
Assignees
Reporter CornerWhisperer
    reproduce:
```
 #include <cstdint>
 void test(int32_t op0, 
    int32_t op1, int32_t op2,
    int32_t op3, int32_t *op4) {
   int32_t *ptr;
   ptr = &op0;
   *(ptr + op1) = op2;
   *op4 = *(ptr + op3);
 }
```

https://godbolt.org/z/Wdxa6Ecsc
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to