brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · 078a82b Raw
74 lines · plain
1# RUN: llc -mtriple=aarch64-none-linux-android -run-pass aarch64-ldst-opt -o - %s | FileCheck %s2 3--- |4  target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"5  target triple = "aarch64-unknown-linux-android"6 7  define void @f(ptr nocapture %x) "target-features"="+mte" {8  entry:9    store i64 1, ptr %x, align 810    %0 = tail call ptr @llvm.aarch64.irg(ptr null, i64 0)11    %1 = tail call ptr @llvm.aarch64.irg.sp(i64 0)12    %arrayidx1 = getelementptr inbounds i64, ptr %x, i64 113    store i64 1, ptr %arrayidx1, align 814    ret void15  }16 17  declare ptr @llvm.aarch64.irg(ptr, i64) nounwind18  declare ptr @llvm.aarch64.irg.sp(i64) nounwind19...20---21name:            f22alignment:       423exposesReturnsTwice: false24legalized:       false25regBankSelected: false26selected:        false27failedISel:      false28tracksRegLiveness: true29hasWinCFI:       false30registers:       []31liveins:32  - { reg: '$x0', virtual-reg: '' }33frameInfo:34  isFrameAddressTaken: false35  isReturnAddressTaken: false36  hasStackMap:     false37  hasPatchPoint:   false38  stackSize:       039  offsetAdjustment: 040  maxAlignment:    041  adjustsStack:    false42  hasCalls:        false43  stackProtector:  ''44  maxCallFrameSize: 045  cvBytesOfCalleeSavedRegisters: 046  hasOpaqueSPAdjustment: false47  hasVAStart:      false48  hasMustTailInVarArgFunc: false49  localFrameSize:  050  savePoint:       []51  restorePoint:    []52fixedStack:      []53stack:           []54callSites:       []55constants:       []56machineFunctionInfo: {}57body:             |58  bb.0.entry:59    liveins: $x060 61    $x8 = ORRXrs $xzr, $xzr, 062    $w9 = MOVZWi 1, 0, implicit-def $x963 64    ; Check that stores are merged across IRG.65    ; CHECK: STPXi renamable $x9, killed renamable $x9, renamable $x0, 066 67    STRXui renamable $x9, renamable $x0, 0 :: (store (s64) into %ir.x)68    dead renamable $x10 = IRG renamable $x8, $xzr69    dead renamable $x8 = IRG $sp, $xzr70    STRXui killed renamable $x9, killed renamable $x0, 1 :: (store (s64) into %ir.arrayidx1)71    RET undef $lr72 73...74