• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN:  llvm-dis < %s.bc| FileCheck %s
2
3; vectorOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
4; The test checks that LLVM does not misread vector operations of
5; older bitcode files.
6
7define void @extractelement(<2 x i8> %x1){
8entry:
9; CHECK: %res1 = extractelement <2 x i8> %x1, i32 0
10  %res1 = extractelement <2 x i8> %x1, i32 0
11
12  ret void
13}
14
15define void @insertelement(<2 x i8> %x1){
16entry:
17; CHECK: %res1 = insertelement <2 x i8> %x1, i8 0, i32 0
18  %res1 = insertelement <2 x i8> %x1, i8 0, i32 0
19
20  ret void
21}
22
23define void @shufflevector(<2 x i8> %x1){
24entry:
25; CHECK: %res1 = shufflevector <2 x i8> %x1, <2 x i8> %x1, <2 x i32> <i32 0, i32 1>
26  %res1 = shufflevector <2 x i8> %x1, <2 x i8> %x1, <2 x i32> <i32 0, i32 1>
27
28; CHECK-NEXT: %res2 = shufflevector <2 x i8> %x1, <2 x i8> undef, <2 x i32> <i32 0, i32 1>
29  %res2 = shufflevector <2 x i8> %x1, <2 x i8> undef, <2 x i32> <i32 0, i32 1>
30
31  ret void
32}
33
34
35