brintos

brintos / llvm-project-archived public Read only

0
0
Text · 265 B · 1eac189 Raw
11 lines · plain
1; RUN: opt < %s -passes=instcombine -S | not grep and2 3define i8 @test21(i8 %A) {4        ;; sign extend5        %C = ashr i8 %A, 7              ; <i8> [#uses=1]6        ;; chop off sign7        %D = and i8 %C, 1               ; <i8> [#uses=1]8        ret i8 %D9}10 11