[AArch64,ELF] Restrict MOVZ/MOVK to non-PIC large code model (#70178)
[llvm-project.git] / llvm / test / CodeGen / X86 / unreachableblockelim.ll
blobaa08983376f42ad93dcc909c5ddb8565477d8b65
1 ; RUN: opt -S < %s -unreachableblockelim | FileCheck %s
3 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
4 target triple = "x86_64-unknown-linux-gnu"
6 declare void @abort()
8 ; CHECK-LABEL: @foo(
9 ; CHECK-NOT: return:
10 define void @foo(ptr %p) {
11 entry:
12   %p.addr = alloca ptr, align 8
13   call void @abort()
14   unreachable
16 return:                                           ; No predecessors!
17   store ptr %p, ptr %p.addr, align 8
18   ret void