brintos

brintos / llvm-project-archived public Read only

0
0
Text · 461 B · c0ade43 Raw
13 lines · cpp
1// REQUIRES: x86-registered-target2// RUN: %clang_cc1 -triple i386-unknown-linux-gnu -O2 -disable-llvm-passes -fasm-blocks %s -emit-llvm -o - | FileCheck --check-prefix=STORE-LINE %s3double foo(double z) {4  // STORE-LINE-LABEL: define{{.*}} double @_Z3food5  unsigned short ControlWord;6  __asm { fnstcw word ptr[ControlWord]}7  ;8  // STORE-LINE: store i64 %{{.*}}, ptr %{{.*}},9  // STORE-LINE-NOT: align 4, !tbaa10  // STORE-LINE-SAME: align 411  return z;12}13