|
17 | 17 | #include <immintrin.h> |
18 | 18 |
|
19 | 19 | __m128d test_mm_undefined_pd(void) { |
20 | | - // CIR-LABEL: test_mm_undefined_pd |
| 20 | + // CIR-LABEL: _mm_undefined_pd |
21 | 21 | // CIR: %{{.*}} = cir.const #cir.zero : !cir.vector<2 x !cir.double> |
22 | 22 | // CIR: cir.return %{{.*}} : !cir.vector<2 x !cir.double> |
23 | 23 |
|
| 24 | + // CIR-LABEL: cir.func {{.*}}test_mm_undefined_pd |
| 25 | + // CIR: call @_mm_undefined_pd |
| 26 | + |
24 | 27 | // LLVM-LABEL: test_mm_undefined_pd |
25 | 28 | // LLVM: store <2 x double> zeroinitializer, ptr %[[A:.*]], align 16 |
26 | 29 | // LLVM: %{{.*}} = load <2 x double>, ptr %[[A]], align 16 |
27 | 30 | // LLVM: ret <2 x double> %{{.*}} |
28 | 31 |
|
29 | 32 | // 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 |
33 | 34 | return _mm_undefined_pd(); |
34 | 35 | } |
35 | 36 |
|
36 | 37 | __m128i test_mm_undefined_si128(void) { |
37 | | - // CIR-LABEL: test_mm_undefined_si128 |
| 38 | + // CIR-LABEL: _mm_undefined_si128 |
38 | 39 | // CIR: %[[A:.*]] = cir.const #cir.zero : !cir.vector<2 x !cir.double> |
39 | 40 | // CIR: %{{.*}} = cir.cast bitcast %[[A]] : !cir.vector<2 x !cir.double> -> |
40 | 41 | // CIR: cir.return %{{.*}} : |
41 | 42 |
|
| 43 | + // CIR-LABEL: cir.func {{.*}}test_mm_undefined_si128 |
| 44 | + // CIR: call @_mm_undefined_si128 |
| 45 | + |
42 | 46 | // LLVM-LABEL: test_mm_undefined_si128 |
43 | 47 | // LLVM: store <2 x i64> zeroinitializer, ptr %[[A:.*]], align 16 |
44 | 48 | // LLVM: %{{.*}} = load <2 x i64>, ptr %[[A]], align 16 |
45 | 49 | // LLVM: ret <2 x i64> %{{.*}} |
46 | 50 |
|
47 | 51 | // 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 |
51 | 53 | return _mm_undefined_si128(); |
52 | 54 | } |
53 | 55 |
|
|
0 commit comments