Author: Jessica Clarke
Date: 2021-12-21T16:48:02-08:00
New Revision: c95753ff5c116134a5ff8029cf2c35c8b760a027

URL: 
https://github.com/llvm/llvm-project/commit/c95753ff5c116134a5ff8029cf2c35c8b760a027
DIFF: 
https://github.com/llvm/llvm-project/commit/c95753ff5c116134a5ff8029cf2c35c8b760a027.diff

LOG: [NFC][X86] Add MC tests for all untested VIA PadLock instructions

We currently only test the encoding of xstore but none of the other
instructions, which should all have their implicit REP prefix be
verified as working.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D112354

(cherry picked from commit b432583d28ee99313fa834139be9535639957d76)

Added: 
    

Modified: 
    llvm/test/MC/X86/padlock.s

Removed: 
    


################################################################################
diff  --git a/llvm/test/MC/X86/padlock.s b/llvm/test/MC/X86/padlock.s
index f652bcf5473b0..c79d346fa23ee 100644
--- a/llvm/test/MC/X86/padlock.s
+++ b/llvm/test/MC/X86/padlock.s
@@ -3,3 +3,27 @@
        xstore
 // CHECK: xstore
 // CHECK: encoding: [0xf3,0x0f,0xa7,0xc0]
+       xcryptecb
+// CHECK: xcryptecb
+// CHECK: encoding: [0xf3,0x0f,0xa7,0xc8]
+       xcryptcbc
+// CHECK: xcryptcbc
+// CHECK: encoding: [0xf3,0x0f,0xa7,0xd0]
+       xcryptctr
+// CHECK: xcryptctr
+// CHECK: encoding: [0xf3,0x0f,0xa7,0xd8]
+       xcryptcfb
+// CHECK: xcryptcfb
+// CHECK: encoding: [0xf3,0x0f,0xa7,0xe0]
+       xcryptofb
+// CHECK: xcryptofb
+// CHECK: encoding: [0xf3,0x0f,0xa7,0xe8]
+       xsha1
+// CHECK: xsha1
+// CHECK: encoding: [0xf3,0x0f,0xa6,0xc8]
+       xsha256
+// CHECK: xsha256
+// CHECK: encoding: [0xf3,0x0f,0xa6,0xd0]
+       montmul
+// CHECK: montmul
+// CHECK: encoding: [0xf3,0x0f,0xa6,0xc0]


        
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to