@@ -1,4 +1,5 @@
{ %CPU=x86_64 }
+{ %opt=-vw -Sew }
// Basic test for 3-operand SIMD instructions with rip-relative operand
@@ -1,4 +1,6 @@
{ %cpu=x86_64 }
+
{$ifdef windows}
{$imagebase $10000}
{$endif}
@@ -10,29 +12,16 @@ begin
test2:=$deadbeef;
ASM
MOVL $16,%EAX
-{$ifdef FPC_PIC}
LEA .LLT(%RIP),%RBX
JMP (%RBX,%RAX)
-{$else not FPC_PIC}
- JMP .LLT(%RAX)
-{$endif not FPC_PIC}
.balign 16
.LLT:
.quad .L3,.L2,.L1
.L2:
MOVL $12341234,test2(%RIP)
- JMP .L3(%RIP)
- MOVL $12341234,test2
JMP .L3
.L1:
MOVL $0,test(%RIP)
- MOVL $0,test
.L3:
END;
if (test<>0) or (test2<>$deadbeef) then