[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / avoidTBAAonASMstore.cpp
blobc0ade4316d53cc275f66bbd343b06091b0a445c3
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]}
8 // STORE-LINE: store i64 %{{.*}}, ptr %{{.*}},
9 // STORE-LINE-NOT: align 4, !tbaa
10 // STORE-LINE-SAME: align 4
11 return z;