brintos

brintos / llvm-project-archived public Read only

0
0
Text · 544 B · 881fa37 Raw
17 lines · plain
1; RUN: llc < %s -mtriple=x86_64-apple-macosx -pre-RA-sched=source | FileCheck %s2 3; Teach two-address pass to update the "source" map so it doesn't perform a4; non-profitable commute using outdated info. The test case would still fail5; because of poor pre-RA schedule. That will be fixed by MI scheduler.6; rdar://114720107define i32 @t(i32 %mask) nounwind readnone ssp {8entry:9; CHECK-LABEL: t:10; CHECK-NOT: mov11  %sub = add i32 %mask, -6553512  %shr = lshr i32 %sub, 2313  %and = and i32 %mask, 114  %add = add i32 %shr, %and15  ret i32 %add16}17