1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s
4 ;; Before getSelectionDAGInfo() interface hooks were defined DAGBuilder
7 define signext i32 @test1(ptr %buffer1, ptr %buffer2) {
9 ; CHECK: # %bb.0: # %entry
10 ; CHECK-NEXT: addi.d $sp, $sp, -16
11 ; CHECK-NEXT: .cfi_def_cfa_offset 16
12 ; CHECK-NEXT: st.d $ra, $sp, 8 # 8-byte Folded Spill
13 ; CHECK-NEXT: .cfi_offset 1, -8
14 ; CHECK-NEXT: ori $a2, $zero, 16
15 ; CHECK-NEXT: bl %plt(memcmp)
16 ; CHECK-NEXT: ld.d $ra, $sp, 8 # 8-byte Folded Reload
17 ; CHECK-NEXT: addi.d $sp, $sp, 16
20 %call = call signext i32 @memcmp(ptr %buffer1, ptr %buffer2, i64 16)
24 declare signext i32 @memcmp(ptr, ptr, i64)