Michael Kuperstein | 9201fb9 | 2014-02-26 12:06:36 +0000 | [diff] [blame] | 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 |
|
| 7 | define void @extractelement(<2 x i8> %x1){
|
| 8 | entry:
|
| 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 |
|
| 15 | define void @insertelement(<2 x i8> %x1){
|
| 16 | entry:
|
| 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 |
|
| 23 | define void @shufflevector(<2 x i8> %x1){
|
| 24 | entry:
|
| 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 |
|