1 ; RUN: rm -f %t.bc 2 ; RUN: rm -f %t.ll 3 ; RUN: rm -f %t2.bc 4 ; RUN: rm -f %t2.ll 5 ; RUN: llvm-as %s -o %t.bc 6 ; RUN: llvm-dis %t.bc -o - | tail -n +2 > %t.ll 7 ; RUN: llvm-as %t.ll -o %t2.bc 8 ; RUN: llvm-dis %t2.bc -o - | tail -n +2 > %t2.ll 9 ; RUN: llvm-diff %t.ll %t2.ll 10 11 define void @test() { 12 %mem = alloca i32 13 store i32 2, i32* %mem 14 %c = load i32* %mem 15 switch i32 %c, label %exit [ 16 i32 1, label %exit 17 i32 2, label %exit 18 ] 19 exit: 20 ret void 21 } 22 define void @test_wide() { 23 %mem = alloca i256 24 store i256 2, i256* %mem 25 %c = load i256* %mem 26 switch i256 %c, label %exit [ 27 i256 123456789012345678901234567890, label %exit 28 i256 2, label %exit 29 ] 30 exit: 31 ret void 32 } 33 34