forked from OSchip/llvm-project
31 lines
1015 B
C
31 lines
1015 B
C
// SSE
|
|
// RUN: %clang_cc1 -no-opaque-pointers \
|
|
// RUN: -triple i386-pc-windows -target-cpu pentium4 -target-feature +sse \
|
|
// RUN: -emit-llvm -o - %s | FileCheck -check-prefix=CHECK %s
|
|
|
|
// NO SSE
|
|
// RUN: %clang_cc1 -no-opaque-pointers \
|
|
// RUN: -triple i386-pc-windows -target-cpu pentium4 -target-feature -sse \
|
|
// RUN: -emit-llvm -o - %s | FileCheck -check-prefix=CHECK %s
|
|
|
|
// NO SSE Fast Math
|
|
// RUN: %clang_cc1 -no-opaque-pointers \
|
|
// RUN: -triple i386-pc-windows -target-cpu pentium4 -target-feature -sse \
|
|
// RUN: -ffast-math -emit-llvm -o - %s | FileCheck -check-prefix=CHECK-FM %s
|
|
|
|
float addit(float a, float b, float c) {
|
|
// CHECK: load float, float*
|
|
// CHECK: load float, float*
|
|
// CHECK: fadd float
|
|
// CHECK: load float, float*
|
|
// CHECK: fadd float
|
|
|
|
// CHECK-FM: load float, float*
|
|
// CHECK-FM: load float, float*
|
|
// CHECK-FM: fadd reassoc nnan ninf nsz arcp afn float
|
|
// CHECK-FM: load float, float*
|
|
// CHECK-FM: fadd reassoc nnan ninf nsz arcp afn float
|
|
|
|
return a + b + c;
|
|
}
|