Skip to content

Commit 1b7ffc0

Browse files
Fix failing tests
1 parent 63e7194 commit 1b7ffc0

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

clang/test/CIR/CodeGen/X86/sse2-builtins.c

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,37 +17,39 @@
1717
#include <immintrin.h>
1818

1919
__m128d test_mm_undefined_pd(void) {
20-
// CIR-LABEL: test_mm_undefined_pd
20+
// CIR-LABEL: _mm_undefined_pd
2121
// CIR: %{{.*}} = cir.const #cir.zero : !cir.vector<2 x !cir.double>
2222
// CIR: cir.return %{{.*}} : !cir.vector<2 x !cir.double>
2323

24+
// CIR-LABEL: cir.func {{.*}}test_mm_undefined_pd
25+
// CIR: call @_mm_undefined_pd
26+
2427
// LLVM-LABEL: test_mm_undefined_pd
2528
// LLVM: store <2 x double> zeroinitializer, ptr %[[A:.*]], align 16
2629
// LLVM: %{{.*}} = load <2 x double>, ptr %[[A]], align 16
2730
// LLVM: ret <2 x double> %{{.*}}
2831

2932
// OGCG-LABEL: test_mm_undefined_pd
30-
// OGCG: store <2 x double> zeroinitializer, ptr %[[A:.*]], align 16
31-
// OGCG: %{{.*}} = load <2 x double>, ptr %[[A]], align 16
32-
// OGCG: ret <2 x double> %{{.*}}
33+
// OGCG: ret <2 x double> zeroinitializer
3334
return _mm_undefined_pd();
3435
}
3536

3637
__m128i test_mm_undefined_si128(void) {
37-
// CIR-LABEL: test_mm_undefined_si128
38+
// CIR-LABEL: _mm_undefined_si128
3839
// CIR: %[[A:.*]] = cir.const #cir.zero : !cir.vector<2 x !cir.double>
3940
// CIR: %{{.*}} = cir.cast bitcast %[[A]] : !cir.vector<2 x !cir.double> ->
4041
// CIR: cir.return %{{.*}} :
4142

43+
// CIR-LABEL: cir.func {{.*}}test_mm_undefined_si128
44+
// CIR: call @_mm_undefined_si128
45+
4246
// LLVM-LABEL: test_mm_undefined_si128
4347
// LLVM: store <2 x i64> zeroinitializer, ptr %[[A:.*]], align 16
4448
// LLVM: %{{.*}} = load <2 x i64>, ptr %[[A]], align 16
4549
// LLVM: ret <2 x i64> %{{.*}}
4650

4751
// OGCG-LABEL: test_mm_undefined_si128
48-
// OGCG: store <2 x i64> zeroinitializer, ptr %[[A:.*]], align 16
49-
// OGCG: %{{.*}} = load <2 x i64>, ptr %[[A]], align 16
50-
// OGCG: ret <2 x i64> %{{.*}}
52+
// OGCG: ret <2 x i64> zeroinitializer
5153
return _mm_undefined_si128();
5254
}
5355

0 commit comments

Comments
 (0)