[RuntimeDyld] Don't try to get the contents of sections that don't have any
[oota-llvm.git] / test / ExecutionEngine / test-interp-vec-shift.ll
1 ; RUN: %lli -force-interpreter=true %s > /dev/null
2
3 define i32 @main() {
4     %shamt = add <2 x i8> <i8 0, i8 0>, <i8 1, i8 2>
5     %shift.upgrd.1 = zext <2 x i8> %shamt to <2 x i32>
6     %t1.s = shl <2 x i32> <i32 1, i32 2>, %shift.upgrd.1
7     %t2.s = shl <2 x i32> <i32 1, i32 2>, <i32 3, i32 4>
8     %shift.upgrd.2 = zext <2 x i8> %shamt to <2 x i32>
9     %t1 = shl <2 x i32> <i32 1, i32 2>, %shift.upgrd.2
10     %t2 = shl <2 x i32> <i32 1, i32 0>, <i32 5, i32 6>
11     %t2.s.upgrd.3 = shl <2 x i64> <i64 1, i64 2>, <i64 3, i64 4>
12     %t2.upgrd.4 = shl <2 x i64> <i64 1, i64 2>, <i64 6, i64 7>
13     %shift.upgrd.5 = zext <2 x i8> %shamt to <2 x i32>
14     %tr1.s = ashr <2 x i32> <i32 1, i32 2>, %shift.upgrd.5
15     %tr2.s = ashr <2 x i32> <i32 1, i32 2>, <i32 4, i32 5>
16     %shift.upgrd.6 = zext <2 x i8> %shamt to <2 x i32>
17     %tr1 = lshr <2 x i32> <i32 1, i32 2>, %shift.upgrd.6
18     %tr2 = lshr <2 x i32> <i32 1, i32 2>, <i32 5, i32 6>
19     %tr1.l = ashr <2 x i64> <i64 1, i64 2>, <i64 4, i64 5>
20     %shift.upgrd.7 = zext <2 x i8> %shamt to <2 x i64>
21     %tr2.l = ashr <2 x i64> <i64 1, i64 2>, %shift.upgrd.7
22     %tr3.l = shl <2 x i64> <i64 1, i64 2>, <i64 4, i64 5>
23     %shift.upgrd.8 = zext <2 x i8> %shamt to <2 x i64>
24     %tr4.l = shl <2 x i64> <i64 1, i64 2>, %shift.upgrd.8
25     %tr1.u = lshr <2 x i64> <i64 1, i64 2>, <i64 5, i64 6>
26     %shift.upgrd.9 = zext <2 x i8> %shamt to <2 x i64>
27     %tr2.u = lshr <2 x i64> <i64 1, i64 2>, %shift.upgrd.9
28     %tr3.u = shl <2 x i64> <i64 1, i64 2>, <i64 5, i64 6>
29     %shift.upgrd.10 = zext <2 x i8> %shamt to <2 x i64>
30     %tr4.u = shl <2 x i64> <i64 1, i64 2>, %shift.upgrd.10
31     ret i32 0
32 }