brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · e90b3e2 Raw
30 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 52; RUN: llc -emulated-tls -mtriple aarch64-apple-darwin -global-isel -global-isel-abort=2 %s -o - 2>&1 | FileCheck %s3 4; This file checks that the fallback path for instructions with emulated TLS variables to selection dag works.5 6; CHECK:        warning: Instruction selection used fallback path for main7 8@x = thread_local global i32 42, align 49 10define i32 @main(i32 %argc, ptr %argv) {11; CHECK-LABEL: main:12; CHECK:       ; %bb.0: ; %entry13; CHECK-NEXT:    stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill14; CHECK-NEXT:    .cfi_def_cfa_offset 1615; CHECK-NEXT:    .cfi_offset w30, -816; CHECK-NEXT:    .cfi_offset w29, -1617; CHECK-NEXT:  Lloh0:18; CHECK-NEXT:    adrp x0, ___emutls_v.x@PAGE19; CHECK-NEXT:  Lloh1:20; CHECK-NEXT:    add x0, x0, ___emutls_v.x@PAGEOFF21; CHECK-NEXT:    bl ___emutls_get_address22; CHECK-NEXT:    ldr w0, [x0]23; CHECK-NEXT:    ldp x29, x30, [sp], #16 ; 16-byte Folded Reload24; CHECK-NEXT:    ret25; CHECK-NEXT:    .loh AdrpAdd Lloh0, Lloh126entry:27  %0 = load i32, ptr @x, align 428  ret i32 %029}30