[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / test / MC / WebAssembly / types.ll
blobc049d3ce0e82d7661df3586a1b28ad890390366e
1 ; RUN: llc -mattr=+unimplemented-simd128 -filetype=obj %s -o - | obj2yaml | FileCheck %s
3 target triple = "wasm32-unknown-unknown"
5 declare i32 @i32()
6 declare i64 @i64()
7 declare float @f32()
8 declare double @f64()
9 declare <16 x i8> @v16i8()
10 declare <8 x i16> @v8i16()
11 declare <4 x i32> @v4i32()
12 declare <2 x i64> @v2i64()
13 declare <4 x float> @v4f32()
14 declare <2 x double> @v2f64()
15 declare { i32, i32, i32 } @structret()
17 define void @f1() {
18 entry:
19   %tmp1 = call i32 @i32()
20   %tmp2 = call i64 @i64()
21   %tmp3 = call float @f32()
22   %tmp4 = call double @f64()
23   %tmp5 = call <16 x i8> @v16i8()
24   %tmp6 = call <8 x i16> @v8i16()
25   %tmp7 = call <4 x i32> @v4i32()
26   %tmp8 = call <2 x i64> @v2i64()
27   %tmp9 = call <4 x float> @v4f32()
28   %tmp10 = call <2 x double> @v2f64()
29   %tmp11 = call {i32, i32, i32} @structret()
30   ret void
33 define void @vararg(i32, i32, ...) {
34   ret void
37 ; CHECK-LABEL: - Type: TYPE
38 ; CHECK-NEXT:    Signatures:
39 ; CHECK-NEXT:       - Index: 0
40 ; CHECK-NEXT:         ParamTypes:
41 ; CHECK-NEXT:         ReturnTypes: []
42 ; CHECK-NEXT:       - Index: 1
43 ; CHECK-NEXT:         ParamTypes:
44 ; CHECK-NEXT:         ReturnTypes:
45 ; CHECK-NEXT:           - I32
46 ; CHECK-NEXT:       - Index: 2
47 ; CHECK-NEXT:         ParamTypes:
48 ; CHECK-NEXT:         ReturnTypes:
49 ; CHECK-NEXT:           - I64
50 ; CHECK-NEXT:       - Index: 3
51 ; CHECK-NEXT:         ParamTypes:
52 ; CHECK-NEXT:         ReturnTypes:
53 ; CHECK-NEXT:           - F32
54 ; CHECK-NEXT:       - Index: 4
55 ; CHECK-NEXT:         ParamTypes:
56 ; CHECK-NEXT:         ReturnTypes:
57 ; CHECK-NEXT:           - F64
58 ; CHECK-NEXT:       - Index: 5
59 ; CHECK-NEXT:         ParamTypes:
60 ; CHECK-NEXT:         ReturnTypes:
61 ; CHECK-NEXT:           - V128
62 ; CHECK-NEXT:       - Index: 6
63 ; CHECK-NEXT:         ParamTypes:
64 ; CHECK-NEXT:           - I32
65 ; CHECK-NEXT:         ReturnTypes: []
66 ; CHECK-NEXT:       - Index: 7
67 ; CHECK-NEXT:         ParamTypes:
68 ; CHECK-NEXT:           - I32
69 ; CHECK-NEXT:           - I32
70 ; CHECK-NEXT:           - I32
71 ; CHECK-NEXT:         ReturnTypes: []
72 ; should be no additional types
73 ; CHECK-NOT: ReturnTypes