1 ; RUN: llvm-dis < %s.bc| FileCheck %s
2 ; RUN: verify-uselistorder < %s.bc
4 ; bitwiseOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
5 ; The test checks that LLVM does not misread bitwise instructions from
8 define void @shl(i8 %x1){
10 ; CHECK: %res1 = shl i8 %x1, %x1
11 %res1 = shl i8 %x1, %x1
13 ; CHECK: %res2 = shl nuw i8 %x1, %x1
14 %res2 = shl nuw i8 %x1, %x1
16 ; CHECK: %res3 = shl nsw i8 %x1, %x1
17 %res3 = shl nsw i8 %x1, %x1
19 ; CHECK: %res4 = shl nuw nsw i8 %x1, %x1
20 %res4 = shl nuw nsw i8 %x1, %x1
25 define void @lshr(i8 %x1){
27 ; CHECK: %res1 = lshr i8 %x1, %x1
28 %res1 = lshr i8 %x1, %x1
30 ; CHECK: %res2 = lshr exact i8 %x1, %x1
31 %res2 = lshr exact i8 %x1, %x1
36 define void @ashr(i8 %x1){
38 ; CHECK: %res1 = ashr i8 %x1, %x1
39 %res1 = ashr i8 %x1, %x1
41 ; CHECK-NEXT: %res2 = ashr exact i8 %x1, %x1
42 %res2 = ashr exact i8 %x1, %x1
47 define void @and(i8 %x1){
49 ; CHECK: %res1 = and i8 %x1, %x1
50 %res1 = and i8 %x1, %x1
55 define void @or(i8 %x1){
57 ; CHECK: %res1 = or i8 %x1, %x1
58 %res1 = or i8 %x1, %x1
63 define void @xor(i8 %x1){
65 ; CHECK: %res1 = xor i8 %x1, %x1
66 %res1 = xor i8 %x1, %x1