brintos

brintos / llvm-project-archived public Read only

0
0
Text · 593 B · ea89d14 Raw
21 lines · plain
1; This testcase was distilled from 132.ijpeg.  Bsaically we cannot fold the2; load into the sub instruction here as it induces a cycle in the dag, which3; is invalid code (there is no correct way to order the instruction).  Check4; that we do not fold the load into the sub.5 6; RUN: llc < %s -mtriple=i686-- | FileCheck %s7 8@GLOBAL = external dso_local global i329 10define i32 @test(ptr %P1, ptr %P2, ptr %P3) nounwind {11; CHECK-LABEL: test:12entry:13  %L = load i32, ptr @GLOBAL14  store i32 12, ptr %P215  %Y = load i32, ptr %P316  %Z = sub i32 %Y, %L17  ret i32 %Z18; CHECK-NOT: {{sub.*GLOBAL}}19}20 21