aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-08-09 16:35:37 +0100
committerPhilip Herron <philip.herron@embecosm.com>2022-08-09 16:35:37 +0100
commit6496291f34b929764d90ce5a6d0b05ca4753d53f (patch)
tree7900144b74856bffa34440d183369ed1840cfad5 /gcc
parentfefd8633dc6524edc69cce411c0f8c1759fa0ee3 (diff)
downloadgcc-6496291f34b929764d90ce5a6d0b05ca4753d53f.zip
gcc-6496291f34b929764d90ce5a6d0b05ca4753d53f.tar.gz
gcc-6496291f34b929764d90ce5a6d0b05ca4753d53f.tar.bz2
Enforce win64 abi test to always run on -m64 mode
Fixes #1439
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/rust/debug/win64-abi.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/rust/debug/win64-abi.rs b/gcc/testsuite/rust/debug/win64-abi.rs
index 9d8de40..b2b08cd 100644
--- a/gcc/testsuite/rust/debug/win64-abi.rs
+++ b/gcc/testsuite/rust/debug/win64-abi.rs
@@ -1,10 +1,10 @@
+// { dg-do compile { target { x86_64-*-* } } }
+// { dg-options "-gdwarf-5 -dA -w -O1 -m64" }
pub extern "win64" fn square(num: i32) -> i32 {
num * num
}
fn main() {
- // { dg-do compile { target { x86_64-*-* } } }
- // { dg-options "-gdwarf-5 -dA -w -O1" }
// MS ABI dictates that the first argument is ecx instead of edi from the sysv world
// { dg-final { scan-assembler "%ecx, %ecx" } }
square(1);