clang/test/CodeGen/avoidTBAAonASMstore.cpp
raw| 1 | // REQUIRES: x86-registered-target |
| 2 | // RUN: %clang_cc1 -triple i386-unknown-linux-gnu -O2 -disable-llvm-passes -fasm-blocks %s -emit-llvm -o - | FileCheck --check-prefix=STORE-LINE %s |
| 3 | double foo(double z) { |
| 4 | // STORE-LINE-LABEL: define{{.*}} double @_Z3food |
| 5 | unsigned short ControlWord; |
| 6 | __asm { fnstcw word ptr[ControlWord]} |
| 7 | ; |
| 8 | // STORE-LINE: store i64 %{{.*}}, ptr %{{.*}}, |
| 9 | // STORE-LINE-NOT: align 4, !tbaa |
| 10 | // STORE-LINE-SAME: align 4 |
| 11 | return z; |
| 12 | } |