brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 336faee Raw
57 lines · plain
1; RUN: llc < %s -mtriple=ve | FileCheck %s2 3define i64 @lea1a(i64 %x) nounwind {4; CHECK-LABEL: lea1a:5; CHECK:       # %bb.0:6; CHECK-NEXT:    #APP7; CHECK-NEXT:    lea %s0, (%s0)8; CHECK-NEXT:    #NO_APP9; CHECK-NEXT:    b.l.t (, %s10)10  %asmtmp = tail call i64 asm "lea $0, ($1)", "=r,r"(i64 %x) nounwind11  ret i64 %asmtmp12}13 14define i64 @lea1b(i64 %x) nounwind {15; CHECK-LABEL: lea1b:16; CHECK:       # %bb.0:17; CHECK-NEXT:    #APP18; CHECK-NEXT:    lea %s0, (, %s0)19; CHECK-NEXT:    #NO_APP20; CHECK-NEXT:    b.l.t (, %s10)21  %asmtmp = tail call i64 asm "lea $0, (, $1)", "=r,r"(i64 %x) nounwind22  ret i64 %asmtmp23}24 25define i64 @lea2(i64 %x, i64 %y) nounwind {26; CHECK-LABEL: lea2:27; CHECK:       # %bb.0:28; CHECK-NEXT:    #APP29; CHECK-NEXT:    lea %s0, (%s0, %s1)30; CHECK-NEXT:    #NO_APP31; CHECK-NEXT:    b.l.t (, %s10)32  %asmtmp = tail call i64 asm "lea $0, ($1, $2)", "=r,r,r"(i64 %x, i64 %y) nounwind33  ret i64 %asmtmp34}35 36define i64 @lea3(i64 %x, i64 %y) nounwind {37; CHECK-LABEL: lea3:38; CHECK:       # %bb.0:39; CHECK-NEXT:    #APP40; CHECK-NEXT:    lea %s0, 2048(%s0, %s1)41; CHECK-NEXT:    #NO_APP42; CHECK-NEXT:    b.l.t (, %s10)43  %asmtmp = tail call i64 asm "lea $0, 2048($1, $2)", "=r,r,r"(i64 %x, i64 %y) nounwind44  ret i64 %asmtmp45}46 47define i64 @leasl3(i64 %x, i64 %y) nounwind {48; CHECK-LABEL: leasl3:49; CHECK:       # %bb.0:50; CHECK-NEXT:    #APP51; CHECK-NEXT:    lea.sl %s0, 2048(%s1, %s0)52; CHECK-NEXT:    #NO_APP53; CHECK-NEXT:    b.l.t (, %s10)54  %asmtmp = tail call i64 asm "lea.sl $0, 2048($1, $2)", "=r,r,r"(i64 %y, i64 %x) nounwind55  ret i64 %asmtmp56}57