1; RUN: llc -mtriple=mipsel -mcpu=mips32r2 -O0 -fast-isel=true -filetype=obj %s -o - \ 2; RUN: | llvm-objdump -d - | FileCheck %s 3 4; This test checks that encoding for srl is correct when fast-isel for mips32r2 is used. 5 6%struct.s = type { [4 x i8], i32 } 7 8define i32 @main() nounwind uwtable { 9entry: 10 %foo = alloca %struct.s, align 4 11 %bf.load = load i32, ptr %foo, align 4 12 %bf.lshr = lshr i32 %bf.load, 2 13 %cmp = icmp ne i32 %bf.lshr, 2 14 br i1 %cmp, label %if.then, label %if.end 15 16if.then: 17 unreachable 18 19if.end: 20 ret i32 0 21} 22 23; CHECK: srl ${{[0-9]+}}, ${{[0-9]+}}, {{[0-9]+}} 24