]> granicus.if.org Git - yasm/commitdiff
Add test for 64-bit shr/shl.
authorPeter Johnson <peter@tortall.net>
Sat, 2 Jul 2011 23:28:29 +0000 (16:28 -0700)
committerPeter Johnson <peter@tortall.net>
Sat, 2 Jul 2011 23:28:29 +0000 (16:28 -0700)
modules/arch/x86/tests/Makefile.inc
modules/arch/x86/tests/shift64.asm [new file with mode: 0644]
modules/arch/x86/tests/shift64.hex [new file with mode: 0644]

index cb2377fcd7d4148bbbe8a189cd7238ee75f21021..5ce31e5620d179ca702316338c62eac5e1aa0cf2 100644 (file)
@@ -181,6 +181,8 @@ EXTRA_DIST += modules/arch/x86/tests/segoff-err.asm
 EXTRA_DIST += modules/arch/x86/tests/segoff-err.errwarn
 EXTRA_DIST += modules/arch/x86/tests/shift.asm
 EXTRA_DIST += modules/arch/x86/tests/shift.hex
+EXTRA_DIST += modules/arch/x86/tests/shift64.asm
+EXTRA_DIST += modules/arch/x86/tests/shift64.hex
 EXTRA_DIST += modules/arch/x86/tests/simd-1.asm
 EXTRA_DIST += modules/arch/x86/tests/simd-1.hex
 EXTRA_DIST += modules/arch/x86/tests/simd-2.asm
diff --git a/modules/arch/x86/tests/shift64.asm b/modules/arch/x86/tests/shift64.asm
new file mode 100644 (file)
index 0000000..c1ce6b1
--- /dev/null
@@ -0,0 +1,5 @@
+[bits 64]
+shl rax, 5
+shl rax, 32
+shr rax, 5
+shr rax, 32
diff --git a/modules/arch/x86/tests/shift64.hex b/modules/arch/x86/tests/shift64.hex
new file mode 100644 (file)
index 0000000..ad28eb2
--- /dev/null
@@ -0,0 +1,16 @@
+48 
+c1 
+e0 
+05 
+48 
+c1 
+e0 
+20 
+48 
+c1 
+e8 
+05 
+48 
+c1 
+e8 
+20