1 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
2 // RUN: %clang_cc1 %s -O2 -emit-llvm -o - -triple x86_64-unknown-unknown -ffreestanding -ffp-exception-behavior=maytrap -Wall -Werror | FileCheck %s
6 // PR104848 - ensure the _mm_set_ss/d headers don't implicity promote any integer/fp values.
8 // CHECK-LABEL: @test_mm_set_ss(
10 // CHECK-NEXT: [[VECINIT3_I:%.*]] = insertelement <4 x float> <float poison, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00>, float [[NUM:%.*]], i64 0
11 // CHECK-NEXT: ret <4 x float> [[VECINIT3_I]]
13 __m128
test_mm_set_ss(float num
)
15 return _mm_set_ss(num
);
18 // CHECK-LABEL: @test_mm_set_sd(
20 // CHECK-NEXT: [[VECINIT1_I:%.*]] = insertelement <2 x double> <double poison, double 0.000000e+00>, double [[NUM:%.*]], i64 0
21 // CHECK-NEXT: ret <2 x double> [[VECINIT1_I]]
23 __m128d
test_mm_set_sd(double num
)
25 return _mm_set_sd(num
);