|
|
001c85 |
diff --git a/gcc/config/i386/constraints.md b/gcc/config/i386/constraints.md
|
|
|
001c85 |
index 43faabb7e87..328a90f45d1 100644
|
|
|
001c85 |
--- a/gcc/config/i386/constraints.md
|
|
|
001c85 |
+++ b/gcc/config/i386/constraints.md
|
|
|
001c85 |
@@ -135,7 +135,7 @@
|
|
|
001c85 |
|
|
|
001c85 |
(define_constraint "w"
|
|
|
001c85 |
"@internal Call memory operand."
|
|
|
001c85 |
- (and (not (match_test "ix86_indirect_branch_register"))
|
|
|
001c85 |
+ (and (not (match_test "TARGET_INDIRECT_BRANCH_REGISTER"))
|
|
|
001c85 |
(not (match_test "TARGET_X32"))
|
|
|
001c85 |
(match_operand 0 "memory_operand")))
|
|
|
001c85 |
|
|
|
001c85 |
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h
|
|
|
001c85 |
index 8ff702615b6..95206478001 100644
|
|
|
001c85 |
--- a/gcc/config/i386/i386.h
|
|
|
001c85 |
+++ b/gcc/config/i386/i386.h
|
|
|
001c85 |
@@ -2413,6 +2413,10 @@ extern void debug_dispatch_window (int);
|
|
|
001c85 |
#define TARGET_RECIP_VEC_DIV ((recip_mask & RECIP_MASK_VEC_DIV) != 0)
|
|
|
001c85 |
#define TARGET_RECIP_VEC_SQRT ((recip_mask & RECIP_MASK_VEC_SQRT) != 0)
|
|
|
001c85 |
|
|
|
001c85 |
+#define TARGET_INDIRECT_BRANCH_REGISTER \
|
|
|
001c85 |
+ (ix86_indirect_branch_register \
|
|
|
001c85 |
+ || cfun->machine->indirect_branch_type != indirect_branch_keep)
|
|
|
001c85 |
+
|
|
|
001c85 |
#define IX86_HLE_ACQUIRE (1 << 16)
|
|
|
001c85 |
#define IX86_HLE_RELEASE (1 << 17)
|
|
|
001c85 |
|
|
|
001c85 |
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
|
|
|
001c85 |
index 3320ec233d2..7a83d079bfc 100644
|
|
|
001c85 |
--- a/gcc/config/i386/i386.md
|
|
|
001c85 |
+++ b/gcc/config/i386/i386.md
|
|
|
001c85 |
@@ -11274,7 +11274,7 @@
|
|
|
001c85 |
[(set (pc) (match_operand 0 "indirect_branch_operand"))]
|
|
|
001c85 |
""
|
|
|
001c85 |
{
|
|
|
001c85 |
- if (TARGET_X32 || ix86_indirect_branch_register)
|
|
|
001c85 |
+ if (TARGET_X32 || TARGET_INDIRECT_BRANCH_REGISTER)
|
|
|
001c85 |
operands[0] = convert_memory_address (word_mode, operands[0]);
|
|
|
001c85 |
cfun->machine->has_local_indirect_jump = true;
|
|
|
001c85 |
})
|
|
|
001c85 |
@@ -11327,7 +11327,7 @@
|
|
|
001c85 |
OPTAB_DIRECT);
|
|
|
001c85 |
}
|
|
|
001c85 |
|
|
|
001c85 |
- if (TARGET_X32 || ix86_indirect_branch_register)
|
|
|
001c85 |
+ if (TARGET_X32 || TARGET_INDIRECT_BRANCH_REGISTER)
|
|
|
001c85 |
operands[0] = convert_memory_address (word_mode, operands[0]);
|
|
|
001c85 |
cfun->machine->has_local_indirect_jump = true;
|
|
|
001c85 |
})
|
|
|
001c85 |
diff --git a/gcc/config/i386/predicates.md b/gcc/config/i386/predicates.md
|
|
|
001c85 |
index 6c7a593084c..f6cf50ad6f5 100644
|
|
|
001c85 |
--- a/gcc/config/i386/predicates.md
|
|
|
001c85 |
+++ b/gcc/config/i386/predicates.md
|
|
|
001c85 |
@@ -540,7 +540,7 @@
|
|
|
001c85 |
;; Test for a valid operand for indirect branch.
|
|
|
001c85 |
(define_predicate "indirect_branch_operand"
|
|
|
001c85 |
(ior (match_operand 0 "register_operand")
|
|
|
001c85 |
- (and (not (match_test "ix86_indirect_branch_register"))
|
|
|
001c85 |
+ (and (not (match_test "TARGET_INDIRECT_BRANCH_REGISTER"))
|
|
|
001c85 |
(not (match_test "TARGET_X32"))
|
|
|
001c85 |
(match_operand 0 "memory_operand"))))
|
|
|
001c85 |
|
|
|
001c85 |
@@ -550,7 +550,7 @@
|
|
|
001c85 |
(ior (match_test "constant_call_address_operand
|
|
|
001c85 |
(op, mode == VOIDmode ? mode : Pmode)")
|
|
|
001c85 |
(match_operand 0 "call_register_no_elim_operand")
|
|
|
001c85 |
- (and (not (match_test "ix86_indirect_branch_register"))
|
|
|
001c85 |
+ (and (not (match_test "TARGET_INDIRECT_BRANCH_REGISTER"))
|
|
|
001c85 |
(and (not (match_test "TARGET_X32"))
|
|
|
001c85 |
(match_operand 0 "memory_operand")))))
|
|
|
001c85 |
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/indirect-thunk-1.c b/gcc/testsuite/gcc.target/i386/indirect-thunk-1.c
|
|
|
001c85 |
index 321db770c35..135bc73b9ce 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/indirect-thunk-1.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/indirect-thunk-1.c
|
|
|
001c85 |
@@ -14,7 +14,7 @@ male_indirect_jump (long offset)
|
|
|
001c85 |
/* Our gcc-4.8 based compiler is not as aggressive at sibcalls
|
|
|
001c85 |
where the target is in a MEM. Thus we have to scan for different
|
|
|
001c85 |
patterns here than in newer compilers. */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" { target *-*-linux* } } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "jmp\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "call\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/indirect-thunk-2.c b/gcc/testsuite/gcc.target/i386/indirect-thunk-2.c
|
|
|
001c85 |
index d58451660f8..867df67143b 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/indirect-thunk-2.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/indirect-thunk-2.c
|
|
|
001c85 |
@@ -14,7 +14,7 @@ male_indirect_jump (long offset)
|
|
|
001c85 |
/* Our gcc-4.8 based compiler is not as aggressive at sibcalls
|
|
|
001c85 |
where the target is in a MEM. Thus we have to scan for different
|
|
|
001c85 |
patterns here than in newer compilers. */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" { target *-*-linux* } } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "jmp\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "call\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/indirect-thunk-3.c b/gcc/testsuite/gcc.target/i386/indirect-thunk-3.c
|
|
|
001c85 |
index 9e24a385387..2c7fb52b59d 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/indirect-thunk-3.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/indirect-thunk-3.c
|
|
|
001c85 |
@@ -12,9 +12,8 @@ male_indirect_jump (long offset)
|
|
|
001c85 |
return 0;
|
|
|
001c85 |
}
|
|
|
001c85 |
|
|
|
001c85 |
-/* { dg-final { scan-assembler "push(?:l|q)\[ \t\]*_?dispatch" { target { { ! x32 } && *-*-linux* } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk" { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" { target x32 } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" { target *-*-linux* } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "jmp\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "call\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler {\tpause} } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/indirect-thunk-4.c b/gcc/testsuite/gcc.target/i386/indirect-thunk-4.c
|
|
|
001c85 |
index 127b5d94523..0d3f895009d 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/indirect-thunk-4.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/indirect-thunk-4.c
|
|
|
001c85 |
@@ -12,9 +12,8 @@ male_indirect_jump (long offset)
|
|
|
001c85 |
return 0;
|
|
|
001c85 |
}
|
|
|
001c85 |
|
|
|
001c85 |
-/* { dg-final { scan-assembler "push(?:l|q)\[ \t\]*_?dispatch" { target { { ! x32 } && *-*-linux* } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk" { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" { target x32 } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" { target *-*-linux* } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "jmp\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "call\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler {\tpause} } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/indirect-thunk-7.c b/gcc/testsuite/gcc.target/i386/indirect-thunk-7.c
|
|
|
001c85 |
index 17c2d0faf88..3c72036dbaf 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/indirect-thunk-7.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/indirect-thunk-7.c
|
|
|
001c85 |
@@ -35,9 +35,8 @@ bar (int i)
|
|
|
001c85 |
}
|
|
|
001c85 |
}
|
|
|
001c85 |
|
|
|
001c85 |
-/* { dg-final { scan-assembler "push(?:l|q)\[ \t\]*\.L\[0-9\]+\\(,%" { target { { ! x32 } && *-*-linux* } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk" { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk_(r|e)ax" { target x32 } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*\.L\[0-9\]+\\(,%" { target *-*-linux* } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "jmp\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "call\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler {\tpause} } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-1.c b/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-1.c
|
|
|
001c85 |
index cd7e8d78199..e20816781f9 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-1.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-1.c
|
|
|
001c85 |
@@ -17,7 +17,7 @@ male_indirect_jump (long offset)
|
|
|
001c85 |
/* Our gcc-4.8 based compiler is not as aggressive at sibcalls
|
|
|
001c85 |
where the target is in a MEM. Thus we have to scan for different
|
|
|
001c85 |
patterns here than in newer compilers. */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" { target *-*-linux* } } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "jmp\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "call\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-2.c b/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-2.c
|
|
|
001c85 |
index 4dbd7a5e5d3..0f30d74ee37 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-2.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-2.c
|
|
|
001c85 |
@@ -15,7 +15,7 @@ male_indirect_jump (long offset)
|
|
|
001c85 |
/* Our gcc-4.8 based compiler is not as aggressive at sibcalls
|
|
|
001c85 |
where the target is in a MEM. Thus we have to scan for different
|
|
|
001c85 |
patterns here than in newer compilers. */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" { target *-*-linux* } } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "jmp\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "call\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-3.c b/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-3.c
|
|
|
001c85 |
index 4aeec1833cd..89a2bac8403 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-3.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-3.c
|
|
|
001c85 |
@@ -14,10 +14,9 @@ male_indirect_jump (long offset)
|
|
|
001c85 |
return 0;
|
|
|
001c85 |
}
|
|
|
001c85 |
|
|
|
001c85 |
-/* { dg-final { scan-assembler "push(?:l|q)\[ \t\]*_?dispatch" { target { { ! x32 } && *-*-linux* } } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" { target *-*-linux* } } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-times "jmp\[ \t\]*\.LIND" 2 } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-times "call\[ \t\]*\.LIND" 2 } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler {\tpause} } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler {\tlfence} } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-not "__x86_indirect_thunk" } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler-not "pushq\[ \t\]%rax" { target x32 } } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-4.c b/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-4.c
|
|
|
001c85 |
index ac0e5999f63..3eb83c3779a 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-4.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-4.c
|
|
|
001c85 |
@@ -13,10 +13,9 @@ male_indirect_jump (long offset)
|
|
|
001c85 |
return 0;
|
|
|
001c85 |
}
|
|
|
001c85 |
|
|
|
001c85 |
-/* { dg-final { scan-assembler "push(?:l|q)\[ \t\]*_?dispatch" { target { { ! x32 } && *-*-linux* } } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" { target *-*-linux* } } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-times "jmp\[ \t\]*\.LIND" 2 } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-times "call\[ \t\]*\.LIND" 2 } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler {\tpause} } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler {\tlfence} } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-not "__x86_indirect_thunk" } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler-not "pushq\[ \t\]%rax" { target x32 } } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-5.c b/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-5.c
|
|
|
001c85 |
index 573cf1ef09e..0098dd1133d 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-5.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-5.c
|
|
|
001c85 |
@@ -14,9 +14,8 @@ male_indirect_jump (long offset)
|
|
|
001c85 |
return 0;
|
|
|
001c85 |
}
|
|
|
001c85 |
|
|
|
001c85 |
-/* { dg-final { scan-assembler "push(?:l|q)\[ \t\]*_?dispatch" { target { { ! x32 } && *-*-linux* } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler-times "jmp\[ \t\]*\.LIND" 1 { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler-times "call\[ \t\]*\.LIND" 1 { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk" { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" { target x32 } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" { target *-*-linux* } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-not {\t(lfence|pause)} } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler-not "jmp\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler-not "call\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-6.c b/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-6.c
|
|
|
001c85 |
index b2b37fc6e2e..ece8de15a4b 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-6.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-6.c
|
|
|
001c85 |
@@ -13,9 +13,8 @@ male_indirect_jump (long offset)
|
|
|
001c85 |
return 0;
|
|
|
001c85 |
}
|
|
|
001c85 |
|
|
|
001c85 |
-/* { dg-final { scan-assembler "push(?:l|q)\[ \t\]*_?dispatch" { target { { ! x32 } && *-*-linux* } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler-times "jmp\[ \t\]*\.LIND" 1 { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler-times "call\[ \t\]*\.LIND" 1 { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk" { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" { target x32 } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" { target *-*-linux* } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-not {\t(lfence|pause)} } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler-not "jmp\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler-not "call\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-7.c b/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-7.c
|
|
|
001c85 |
index 4a43e199931..d53fc887dcc 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-7.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/indirect-thunk-attr-7.c
|
|
|
001c85 |
@@ -36,9 +36,8 @@ bar (int i)
|
|
|
001c85 |
}
|
|
|
001c85 |
}
|
|
|
001c85 |
|
|
|
001c85 |
-/* { dg-final { scan-assembler "push(?:l|q)\[ \t\]*\.L\[0-9\]+\\(,%" { target { { ! x32 } && *-*-linux* } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk_(r|e)ax" { target x32 } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk" } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*\.L\[0-9\]+\\(,%" { target *-*-linux* } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-not {\t(lfence|pause)} } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-not "jmp\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-not "call\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-1.c b/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-1.c
|
|
|
001c85 |
index 72de88e04aa..1f78b07f84a 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-1.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-1.c
|
|
|
001c85 |
@@ -14,7 +14,7 @@ male_indirect_jump (long offset)
|
|
|
001c85 |
/* Our gcc-4.8 based compiler is not as aggressive at sibcalls
|
|
|
001c85 |
where the target is in a MEM. Thus we have to scan for different
|
|
|
001c85 |
patterns here than in newer compilers. */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" { target *-*-linux* } } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-not {\t(lfence|pause)} } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-not "jmp\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-2.c b/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-2.c
|
|
|
001c85 |
index d4137b38a1e..5397a5874aa 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-2.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-2.c
|
|
|
001c85 |
@@ -14,7 +14,7 @@ male_indirect_jump (long offset)
|
|
|
001c85 |
/* Our gcc-4.8 based compiler is not as aggressive at sibcalls
|
|
|
001c85 |
where the target is in a MEM. Thus we have to scan for different
|
|
|
001c85 |
patterns here than in newer compilers. */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" { target *-*-linux* } } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-not {\t(lfence|pause)} } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-not "jmp\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-3.c b/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-3.c
|
|
|
001c85 |
index d9964c25bbd..385626850a2 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-3.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-3.c
|
|
|
001c85 |
@@ -12,9 +12,8 @@ male_indirect_jump (long offset)
|
|
|
001c85 |
return 0;
|
|
|
001c85 |
}
|
|
|
001c85 |
|
|
|
001c85 |
-/* { dg-final { scan-assembler "push(?:l|q)\[ \t\]*_?dispatch" { target { { ! x32 } && *-*-linux* } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk" { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler-times "jmp\[ \t\]*\.LIND" 1 { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler-times "call\[ \t\]*\.LIND" 1 { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" { target x32 } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" { target *-*-linux* } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-not {\t(lfence|pause)} } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler-not "jmp\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler-not "call\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-4.c b/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-4.c
|
|
|
001c85 |
index d4dca4dc5fe..1ae49b137ca 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-4.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-4.c
|
|
|
001c85 |
@@ -12,9 +12,7 @@ male_indirect_jump (long offset)
|
|
|
001c85 |
return 0;
|
|
|
001c85 |
}
|
|
|
001c85 |
|
|
|
001c85 |
-/* { dg-final { scan-assembler "push(?:l|q)\[ \t\]*_?dispatch" { target { { ! x32 } && *-*-linux* } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk" { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler-times "jmp\[ \t\]*\.LIND" 1 { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler-times "call\[ \t\]*\.LIND" 1 { target { ! x32 } } } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" { target x32 } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" { target *-*-linux* } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-not {\t(lfence|pause)} } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-7.c b/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-7.c
|
|
|
001c85 |
index aece9383697..2b9a33e93dc 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-7.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-7.c
|
|
|
001c85 |
@@ -35,9 +35,8 @@ bar (int i)
|
|
|
001c85 |
}
|
|
|
001c85 |
}
|
|
|
001c85 |
|
|
|
001c85 |
-/* { dg-final { scan-assembler "push(?:l|q)\[ \t\]*\.L\[0-9\]+\\(,%" { target { { ! x32 } && *-*-linux* } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk" { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk_(r|e)ax" { target x32 } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*\.L\[0-9\]+\\(,%" { target *-*-linux* } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-not {\t(lfence|pause)} } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-not "jmp\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-not "call\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/indirect-thunk-inline-1.c b/gcc/testsuite/gcc.target/i386/indirect-thunk-inline-1.c
|
|
|
001c85 |
index e3cea3fa3c2..dbda34ab038 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/indirect-thunk-inline-1.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/indirect-thunk-inline-1.c
|
|
|
001c85 |
@@ -14,7 +14,7 @@ male_indirect_jump (long offset)
|
|
|
001c85 |
/* Our gcc-4.8 based compiler is not as aggressive at sibcalls
|
|
|
001c85 |
where the target is in a MEM. Thus we have to scan for different
|
|
|
001c85 |
patterns here than in newer compilers. */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" { target *-*-linux* } } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "jmp\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "call\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler {\tpause} } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/indirect-thunk-inline-2.c b/gcc/testsuite/gcc.target/i386/indirect-thunk-inline-2.c
|
|
|
001c85 |
index 62229969c90..810824666ef 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/indirect-thunk-inline-2.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/indirect-thunk-inline-2.c
|
|
|
001c85 |
@@ -14,7 +14,7 @@ male_indirect_jump (long offset)
|
|
|
001c85 |
/* Our gcc-4.8 based compiler is not as aggressive at sibcalls
|
|
|
001c85 |
where the target is in a MEM. Thus we have to scan for different
|
|
|
001c85 |
patterns here than in newer compilers. */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" { target *-*-linux* } } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "jmp\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "call\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler {\tpause} } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/indirect-thunk-inline-3.c b/gcc/testsuite/gcc.target/i386/indirect-thunk-inline-3.c
|
|
|
001c85 |
index 2eef6f35a75..4a63ebed8ab 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/indirect-thunk-inline-3.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/indirect-thunk-inline-3.c
|
|
|
001c85 |
@@ -12,7 +12,7 @@ male_indirect_jump (long offset)
|
|
|
001c85 |
return 0;
|
|
|
001c85 |
}
|
|
|
001c85 |
|
|
|
001c85 |
-/* { dg-final { scan-assembler "push(?:l|q)\[ \t\]*_?dispatch" { target { { ! x32 } && *-*-linux* } } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" { target *-*-linux* } } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-times "jmp\[ \t\]*\.LIND" 2 } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-times "call\[ \t\]*\.LIND" 2 } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-times {\tpause} 1 } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/indirect-thunk-inline-4.c b/gcc/testsuite/gcc.target/i386/indirect-thunk-inline-4.c
|
|
|
001c85 |
index e825a10f14c..a395ffca018 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/indirect-thunk-inline-4.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/indirect-thunk-inline-4.c
|
|
|
001c85 |
@@ -12,7 +12,7 @@ male_indirect_jump (long offset)
|
|
|
001c85 |
return 0;
|
|
|
001c85 |
}
|
|
|
001c85 |
|
|
|
001c85 |
-/* { dg-final { scan-assembler "push(?:l|q)\[ \t\]*_?dispatch" { target { { ! x32 } && *-*-linux* } } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" { target *-*-linux* } } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-times "jmp\[ \t\]*\.LIND" 2 } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-times "call\[ \t\]*\.LIND" 2 } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-times {\tpause} 1 } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/indirect-thunk-inline-7.c b/gcc/testsuite/gcc.target/i386/indirect-thunk-inline-7.c
|
|
|
001c85 |
index c67066cf197..ea009245a58 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/indirect-thunk-inline-7.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/indirect-thunk-inline-7.c
|
|
|
001c85 |
@@ -35,8 +35,8 @@ bar (int i)
|
|
|
001c85 |
}
|
|
|
001c85 |
}
|
|
|
001c85 |
|
|
|
001c85 |
-/* { dg-final { scan-assembler "push(?:l|q)\[ \t\]*\.L\[0-9\]+\\(,%" { target { { ! x32 } && *-*-linux* } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler-not "pushq\[ \t\]%rax" { target x32 } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*\.L\[0-9\]+\\(,%" { target *-*-linux* } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler-not "pushq\[ \t\]%(r|e)ax" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "jmp\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "call\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler {\tpause} } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/ret-thunk-10.c b/gcc/testsuite/gcc.target/i386/ret-thunk-10.c
|
|
|
001c85 |
index e6fea84a4d9..af9023af613 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/ret-thunk-10.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/ret-thunk-10.c
|
|
|
001c85 |
@@ -15,9 +15,6 @@ foo (void)
|
|
|
001c85 |
/* { dg-final { scan-assembler-not "jmp\[ \t\]*__x86_return_thunk" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-times {\tpause} 2 } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-times {\tlfence} 2 } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "push(?:l|q)\[ \t\]*_?bar" { target { { ! x32 } && *-*-linux* } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk" { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "__x86_indirect_thunk:" { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" { target { x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "__x86_indirect_thunk_(r|e)ax:" { target { x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler-not "pushq\[ \t\]%rax" { target x32 } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "__x86_indirect_thunk_(r|e)ax:" } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler-not "pushq\[ \t\]%rax" } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/ret-thunk-11.c b/gcc/testsuite/gcc.target/i386/ret-thunk-11.c
|
|
|
001c85 |
index e239ec4542f..ba467c59b36 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/ret-thunk-11.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/ret-thunk-11.c
|
|
|
001c85 |
@@ -15,9 +15,6 @@ foo (void)
|
|
|
001c85 |
/* { dg-final { scan-assembler-times {\tlfence} 1 } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "jmp\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "call\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "push(?:l|q)\[ \t\]*_?bar" { target { { ! x32 } && *-*-linux* } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk" { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "__x86_indirect_thunk:" { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" { target { x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "__x86_indirect_thunk_(r|e)ax:" { target { x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler-not "pushq\[ \t\]%rax" { target x32 } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "__x86_indirect_thunk_(r|e)ax:" } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler-not "pushq\[ \t\]%rax" } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/ret-thunk-12.c b/gcc/testsuite/gcc.target/i386/ret-thunk-12.c
|
|
|
001c85 |
index fa3181303c9..43e57cac2c3 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/ret-thunk-12.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/ret-thunk-12.c
|
|
|
001c85 |
@@ -15,8 +15,6 @@ foo (void)
|
|
|
001c85 |
/* { dg-final { scan-assembler-times {\tlfence} 1 } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "jmp\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "call\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk" { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "__x86_indirect_thunk:" { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" { target { x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "__x86_indirect_thunk_(r|e)ax:" { target { x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler-not "pushq\[ \t\]%rax" { target x32 } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "__x86_indirect_thunk_(r|e)ax:" } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler-not "pushq\[ \t\]%rax" } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/ret-thunk-13.c b/gcc/testsuite/gcc.target/i386/ret-thunk-13.c
|
|
|
001c85 |
index fd5b41fdd3f..55f156c4376 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/ret-thunk-13.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/ret-thunk-13.c
|
|
|
001c85 |
@@ -14,9 +14,8 @@ foo (void)
|
|
|
001c85 |
/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_return_thunk" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-times {\tpause} 2 } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-times {\tlfence} 2 } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "push(?:l|q)\[ \t\]*_?bar" { target { { ! x32 } && *-*-linux* } } } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-times "jmp\[ \t\]*\.LIND" 3 } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-times "call\[ \t\]*\.LIND" 3 } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-not "jmp\[ \t\]*__x86_indirect_thunk" } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler-not "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" { target { x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler-not "pushq\[ \t\]%rax" { target x32 } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler-not "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler-not "pushq\[ \t\]%rax" } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/ret-thunk-14.c b/gcc/testsuite/gcc.target/i386/ret-thunk-14.c
|
|
|
001c85 |
index d606373ead1..1c790436a53 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/ret-thunk-14.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/ret-thunk-14.c
|
|
|
001c85 |
@@ -16,7 +16,6 @@ foo (void)
|
|
|
001c85 |
/* { dg-final { scan-assembler-not "jmp\[ \t\]*__x86_return_thunk" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "jmp\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "call\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "push(?:l|q)\[ \t\]*_?bar" { target { { ! x32 } && *-*-linux* } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk" { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" { target { x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler-not "pushq\[ \t\]%rax" { target x32 } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?bar" { target *-*-linux* } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler-not "pushq\[ \t\]%rax" } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/ret-thunk-15.c b/gcc/testsuite/gcc.target/i386/ret-thunk-15.c
|
|
|
001c85 |
index 75e45e226b8..58aba319cba 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/ret-thunk-15.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/ret-thunk-15.c
|
|
|
001c85 |
@@ -16,7 +16,6 @@ foo (void)
|
|
|
001c85 |
/* { dg-final { scan-assembler "call\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-times {\tpause} 1 } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler-times {\tlfence} 1 } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "push(?:l|q)\[ \t\]*_?bar" { target { { ! x32 } && *-*-linux* } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk" { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" { target x32 } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler-not "pushq\[ \t\]%rax" { target x32 } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?bar" { target *-*-linux* } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler-not "pushq\[ \t\]%rax" } } */
|
|
|
001c85 |
diff --git a/gcc/testsuite/gcc.target/i386/ret-thunk-9.c b/gcc/testsuite/gcc.target/i386/ret-thunk-9.c
|
|
|
001c85 |
index a605c26c46f..eee230ca2f6 100644
|
|
|
001c85 |
--- a/gcc/testsuite/gcc.target/i386/ret-thunk-9.c
|
|
|
001c85 |
+++ b/gcc/testsuite/gcc.target/i386/ret-thunk-9.c
|
|
|
001c85 |
@@ -14,11 +14,8 @@ foo (void)
|
|
|
001c85 |
/* { dg-final { scan-assembler "jmp\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "call\[ \t\]*\.LIND" } } */
|
|
|
001c85 |
/* { dg-final { scan-assembler "__x86_return_thunk:" } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler-times {\tpause} 1 { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler-times {\tlfence} 1 { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "push(?:l|q)\[ \t\]*_?bar" { target { { ! x32 } && *-*-linux* } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk" { target { ! x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler-times {\tpause} 2 { target { x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler-times {\tlfence} 2 { target { x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" { target { x32 } } } } */
|
|
|
001c85 |
-/* { dg-final { scan-assembler-not "pushq\[ \t\]%rax" { target x32 } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?bar" { target *-*-linux* } } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler-times {\tpause} 2 } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler-times {\tlfence} 2 } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
|
|
|
001c85 |
+/* { dg-final { scan-assembler-not "pushq\[ \t\]%rax" } } */
|