19 lines · plain
1; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep rlwin2 3define void @test(ptr %P) {4 %W = load i8, ptr %P5 %X = shl i8 %W, 16 %Y = add i8 %X, 27 %Z = and i8 %Y, 254 ; dead and8 store i8 %Z, ptr %P9 ret void10}11 12define zeroext i16 @test2(i16 zeroext %crc) { 13 ; No and's should be needed for the i16s here.14 %tmp.1 = lshr i16 %crc, 115 %tmp.7 = xor i16 %tmp.1, 4096116 ret i16 %tmp.717}18 19