Skip to content

Commit 4d1ad30

Browse files
committed
address comments.
1 parent 1fdd2f2 commit 4d1ad30

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

llvm/test/CodeGen/X86/inline-asm-r-constraint.ll renamed to llvm/test/CodeGen/X86/apx/inline-asm-r-constraint.ll

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,16 @@ entry:
1414
call void asm sideeffect "add $0, %rax", "r,~{rax},~{rbx},~{rcx},~{rdx},~{rdi},~{rsi},~{r8},~{r9},~{r10},~{r11},~{r12},~{r13},~{r14},~{r15},~{dirflag},~{fpsr},~{flags}"(i64 %0)
1515
ret void
1616
}
17+
18+
define void @constraint_jR_test() nounwind "frame-pointer"="all" {
19+
; EGPR-LABEL: constraint_jR_test:
20+
; EGPR: addq %r16, %rax
21+
;
22+
; EGPRUSEGPR32-LABEL: constraint_jR_test:
23+
; EGPRUSEGPR32: addq %r16, %rax
24+
entry:
25+
%reg = alloca i64, align 8
26+
%0 = load i64, ptr %reg, align 8
27+
call void asm sideeffect "add $0, %rax", "^jR,~{rax},~{rbx},~{rcx},~{rdx},~{rdi},~{rsi},~{r8},~{r9},~{r10},~{r11},~{r12},~{r13},~{r14},~{r15},~{dirflag},~{fpsr},~{flags}"(i64 %0)
28+
ret void
29+
}

0 commit comments

Comments
 (0)