31 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 32# RUN: llc -mtriple=i386-unknown-linux-gnu -mattr=slow-3ops-lea -run-pass x86-fixup-LEAs -o - %s | FileCheck %s3 4--- |5 define i32 @square(i32 %0) local_unnamed_addr {6 %blub = getelementptr i8, ptr blockaddress(@square, %2), i32 %07 indirectbr ptr %blub, [label %2]8 9 2:10 ret i32 011 }12 13---14name: square15body: |16 ; CHECK-LABEL: name: square17 ; CHECK: bb.0:18 ; CHECK-NEXT: renamable $eax = LEA32r renamable $ebx, 1, renamable $ebp, 0, $noreg19 ; CHECK-NEXT: $eax = ADD32ri $eax, target-flags(x86-gotoff) blockaddress(@square, %ir-block.1), implicit-def $eflags20 ; CHECK-NEXT: JMP32r killed renamable $eax21 ; CHECK-NEXT: {{ $}}22 ; CHECK-NEXT: bb.1 (%ir-block.1, ir-block-address-taken %ir-block.1):23 ; CHECK-NEXT: RET 024 bb.0:25 renamable $eax = LEA32r renamable $ebp, 1, renamable $ebx, target-flags(x86-gotoff) blockaddress(@square, %ir-block.1), $noreg26 JMP32r killed renamable $eax27 28 bb.1 (%ir-block.1, ir-block-address-taken %ir-block.1):29 RET 030...31