[RISCV] Add shrinkwrap test cases showing gaps in current impl
[llvm-project.git] / llvm / test / CodeGen / X86 / lea-opt-memop-check-2.ll
blobeed26c0901a49547f6f04fd5d8500cf58f92b15d
1 ; RUN: llc < %s -mtriple=x86_64-pc-linux -mcpu=corei7 -relocation-model=pic | FileCheck %s
3 ; PR27502
4 ; UNREACHABLE: "Invalid address displacement operand"
6 @buf = internal global [5 x ptr] zeroinitializer
8 declare i32 @llvm.eh.sjlj.setjmp(ptr) nounwind
10 define i32 @test() nounwind optsize {
11   %r = tail call i32 @llvm.eh.sjlj.setjmp(ptr @buf)
12   ret i32 %r
13 ; CHECK-LABEL: test:
14 ; CHECK:        leaq .LBB0_3(%rip), %r[[REG:[a-z]+]]
15 ; CHECK:        movq %r[[REG]], buf+8(%rip)
16 ; CHECK:        #EH_SjLj_Setup .LBB0_3
17 ; CHECK:        xorl %e[[REG]], %e[[REG]]
18 ; CHECK:        jmp .LBB0_2
19 ; CHECK-LABEL: .LBB0_3: # Block address taken
20 ; CHECK-LABEL: .LBB0_2: