1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=aarch64-- -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
4 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
5 target triple = "aarch64"
7 define i8 @load_acq_i8(i8* %ptr) {
8 %v = load atomic i8, i8* %ptr acquire, align 8
18 tracksRegLiveness: true
21 machineFunctionInfo: {}
26 ; CHECK-LABEL: name: load_acq_i8
28 ; CHECK: [[COPY:%[0-9]+]]:gpr64sp = COPY $x0
29 ; CHECK: [[LDARB:%[0-9]+]]:gpr32 = LDARB [[COPY]] :: (load acquire (s8) from %ir.ptr, align 8)
30 ; CHECK: $w0 = COPY [[LDARB]]
31 ; CHECK: RET_ReallyLR implicit $w0
33 %2:gpr(s32) = G_LOAD %0(p0) :: (load acquire (s8) from %ir.ptr, align 8)
35 RET_ReallyLR implicit $w0