1; RUN: llc < %s -mtriple=ve | FileCheck %s 2 3define i64 @lea1a(i64 %x) nounwind { 4; CHECK-LABEL: lea1a: 5; CHECK: # %bb.0: 6; CHECK-NEXT: #APP 7; CHECK-NEXT: lea %s0, (%s0) 8; CHECK-NEXT: #NO_APP 9; CHECK-NEXT: b.l.t (, %s10) 10 %asmtmp = tail call i64 asm "lea $0, ($1)", "=r,r"(i64 %x) nounwind 11 ret i64 %asmtmp 12} 13 14define i64 @lea1b(i64 %x) nounwind { 15; CHECK-LABEL: lea1b: 16; CHECK: # %bb.0: 17; CHECK-NEXT: #APP 18; CHECK-NEXT: lea %s0, (, %s0) 19; CHECK-NEXT: #NO_APP 20; CHECK-NEXT: b.l.t (, %s10) 21 %asmtmp = tail call i64 asm "lea $0, (, $1)", "=r,r"(i64 %x) nounwind 22 ret i64 %asmtmp 23} 24 25define i64 @lea2(i64 %x, i64 %y) nounwind { 26; CHECK-LABEL: lea2: 27; CHECK: # %bb.0: 28; CHECK-NEXT: #APP 29; CHECK-NEXT: lea %s0, (%s0, %s1) 30; CHECK-NEXT: #NO_APP 31; CHECK-NEXT: b.l.t (, %s10) 32 %asmtmp = tail call i64 asm "lea $0, ($1, $2)", "=r,r,r"(i64 %x, i64 %y) nounwind 33 ret i64 %asmtmp 34} 35 36define i64 @lea3(i64 %x, i64 %y) nounwind { 37; CHECK-LABEL: lea3: 38; CHECK: # %bb.0: 39; CHECK-NEXT: #APP 40; CHECK-NEXT: lea %s0, 2048(%s0, %s1) 41; CHECK-NEXT: #NO_APP 42; CHECK-NEXT: b.l.t (, %s10) 43 %asmtmp = tail call i64 asm "lea $0, 2048($1, $2)", "=r,r,r"(i64 %x, i64 %y) nounwind 44 ret i64 %asmtmp 45} 46 47define i64 @leasl3(i64 %x, i64 %y) nounwind { 48; CHECK-LABEL: leasl3: 49; CHECK: # %bb.0: 50; CHECK-NEXT: #APP 51; CHECK-NEXT: lea.sl %s0, 2048(%s1, %s0) 52; CHECK-NEXT: #NO_APP 53; 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) nounwind 55 ret i64 %asmtmp 56} 57