[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / clang / test / CodeGen / X86 / 32bit-behavior-no-eval.c
blobca612e3ba717bf6c8a73bb02f4d81b8f4a982748
1 // SSE
2 // RUN: %clang_cc1 \
3 // RUN: -triple i386-pc-windows -target-cpu pentium4 -target-feature +sse \
4 // RUN: -emit-llvm -o - %s | FileCheck -check-prefix=CHECK %s
6 // NO SSE
7 // RUN: %clang_cc1 \
8 // RUN: -triple i386-pc-windows -target-cpu pentium4 -target-feature -sse \
9 // RUN: -emit-llvm -o - %s | FileCheck -check-prefix=CHECK %s
11 // NO SSE Fast Math
12 // RUN: %clang_cc1 \
13 // RUN: -triple i386-pc-windows -target-cpu pentium4 -target-feature -sse \
14 // RUN: -ffast-math -emit-llvm -o - %s | FileCheck -check-prefix=CHECK-FM %s
16 float addit(float a, float b, float c) {
17 // CHECK: load float, ptr
18 // CHECK: load float, ptr
19 // CHECK: fadd float
20 // CHECK: load float, ptr
21 // CHECK: fadd float
23 // CHECK-FM: load float, ptr
24 // CHECK-FM: load float, ptr
25 // CHECK-FM: fadd reassoc nnan ninf nsz arcp afn float
26 // CHECK-FM: load float, ptr
27 // CHECK-FM: fadd reassoc nnan ninf nsz arcp afn float
29 return a + b + c;