brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1018 B · c7557da Raw
36 lines · plain
1# RUN: llc -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -run-pass=x86-optimize-LEAs -o - %s | FileCheck %s2 3# This test case used to trigger the assertion in the LEA optimization pass:4#5#   assert(MRI->use_empty(LastVReg) &&6#          "The LEA's def register must have no uses");7 8# CHECK:     LEA64r9# CHECK-NOT: LEA64r10# CHECK:     DBG_VALUE_LIST11 12--- |13  define void @foo() {14    ret void15  }16 17  !0 = !DIFile(filename: "a", directory: "/proc/self/cwd")18  !1 = distinct !DISubprogram(name: "c", scope: null, file: !0, line: 3)19  !2 = !DILocalVariable(name: "r", scope: !1, file: !0, line: 4)20  !3 = !DILocation(line: 5, scope: !1)21...22---23name: foo24alignment: 1625tracksRegLiveness: true26stack:27  - { id: 0, size: 40, alignment: 8 }28body: |29  bb.0:30    %0:gr64 = LEA64r %stack.0, 1, $noreg, 0, $noreg31    %1:gr64 = LEA64r %stack.0, 1, $noreg, 40, $noreg32    DBG_VALUE_LIST !2, !DIExpression(DW_OP_LLVM_arg, 0), %1:gr64, %1:gr64, debug-location !333    %2:vr128 = MOVUPSrm %1:gr64, 1, $noreg, 0, $noreg34    RET6435...36