brintos

brintos / llvm-project-archived public Read only

0
0
Text · 868 B · e5351a6 Raw
25 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc --mtriple=loongarch64 -mattr=+d --relocation-model=static -O1 \3; RUN:     < %s | FileCheck %s --check-prefix=MERGE4; RUN: llc --mtriple=loongarch64 -mattr=+d --relocation-model=static -O1 \5; RUN:     --loongarch-enable-merge-offset=false < %s | FileCheck %s --check-prefix=NO_MERGE6 7@g = dso_local global i32 zeroinitializer, align 48 9define void @foo() nounwind {10; MERGE-LABEL: foo:11; MERGE:       # %bb.0:12; MERGE-NEXT:    pcalau12i $a0, %pc_hi20(g)13; MERGE-NEXT:    ld.w $zero, $a0, %pc_lo12(g)14; MERGE-NEXT:    ret15;16; NO_MERGE-LABEL: foo:17; NO_MERGE:       # %bb.0:18; NO_MERGE-NEXT:    pcalau12i $a0, %pc_hi20(g)19; NO_MERGE-NEXT:    addi.d $a0, $a0, %pc_lo12(g)20; NO_MERGE-NEXT:    ld.w $zero, $a0, 021; NO_MERGE-NEXT:    ret22  %v = load volatile i32, ptr @g23  ret void24}25