[SKX] Enabling mask instructions: encoding, lowering
[oota-llvm.git] / test / Bitcode / aggregateInstructions.3.2.ll
1 ; RUN:  llvm-dis < %s.bc| FileCheck %s\r
2 \r
3 ; aggregateOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2.\r
4 ; The test checks that LLVM does not misread instructions with aggregate operands\r
5 ; in older bitcode files.\r
6 \r
7 define void @extractvalue([4 x i8] %x1, [4 x [4 x i8]] %x2, {{i32, float}} %x3){\r
8 entry:\r
9 ; CHECK: %res1 = extractvalue [4 x i8] %x1, 0\r
10   %res1 = extractvalue [4 x i8] %x1, 0\r
11   \r
12 ; CHECK-NEXT: %res2 = extractvalue [4 x [4 x i8]] %x2, 1\r
13   %res2 = extractvalue [4 x [4 x i8 ]] %x2, 1\r
14 \r
15 ; CHECK-NEXT: %res3 = extractvalue [4 x [4 x i8]] %x2, 0, 1\r
16   %res3 = extractvalue [4 x [4 x i8 ]] %x2, 0, 1\r
17   \r
18 ; CHECK-NEXT: %res4 = extractvalue { { i32, float } } %x3, 0, 1\r
19   %res4 = extractvalue {{i32, float}} %x3, 0, 1\r
20 \r
21   ret void\r
22 }\r
23 \r
24 define void @insertvalue([4 x [4 x i8 ]] %x1){\r
25 entry:\r
26 ; CHECK: %res1 = insertvalue [4 x [4 x i8]] %x1, i8 0, 0, 0\r
27   %res1 = insertvalue [4 x [4 x i8 ]] %x1, i8 0, 0, 0\r
28   \r
29 ; CHECK-NEXT: %res2 = insertvalue [4 x [4 x i8]] undef, i8 0, 0, 0\r
30   %res2 = insertvalue [4 x [4 x i8 ]] undef, i8 0, 0, 0\r
31 \r
32   ret void\r
33 }