[llvm] r329528 - [X86][PKU] Regenerate rdpkru/wrpkru intrinsic tests
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 8 05:30:30 PDT 2018
Author: rksimon
Date: Sun Apr 8 05:30:30 2018
New Revision: 329528
URL: http://llvm.org/viewvc/llvm-project?rev=329528&view=rev
Log:
[X86][PKU] Regenerate rdpkru/wrpkru intrinsic tests
Added i686 checks
Modified:
llvm/trunk/test/CodeGen/X86/pku.ll
Modified: llvm/trunk/test/CodeGen/X86/pku.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/pku.ll?rev=329528&r1=329527&r2=329528&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/pku.ll (original)
+++ llvm/trunk/test/CodeGen/X86/pku.ll Sun Apr 8 05:30:30 2018
@@ -1,25 +1,42 @@
-; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=knl --show-mc-encoding -verify-machineinstrs | FileCheck %s
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=i686-apple-darwin -mcpu=knl --show-mc-encoding -verify-machineinstrs | FileCheck %s --check-prefixes=CHECK,X86
+; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=knl --show-mc-encoding -verify-machineinstrs | FileCheck %s --check-prefixes=CHECK,X64
+
declare i32 @llvm.x86.rdpkru()
declare void @llvm.x86.wrpkru(i32)
define void @test_x86_wrpkru(i32 %src) {
-; CHECK-LABEL: test_x86_wrpkru:
-; CHECK: ## %bb.0:
-; CHECK-NEXT: xorl %ecx, %ecx
-; CHECK-NEXT: xorl %edx, %edx
-; CHECK-NEXT: movl %edi, %eax
-; CHECK-NEXT: wrpkru
-; CHECK-NEXT: retq
- call void @llvm.x86.wrpkru(i32 %src)
+; X86-LABEL: test_x86_wrpkru:
+; X86: ## %bb.0:
+; X86-NEXT: movl {{[0-9]+}}(%esp), %eax ## encoding: [0x8b,0x44,0x24,0x04]
+; X86-NEXT: xorl %ecx, %ecx ## encoding: [0x31,0xc9]
+; X86-NEXT: xorl %edx, %edx ## encoding: [0x31,0xd2]
+; X86-NEXT: wrpkru ## encoding: [0x0f,0x01,0xef]
+; X86-NEXT: retl ## encoding: [0xc3]
+;
+; X64-LABEL: test_x86_wrpkru:
+; X64: ## %bb.0:
+; X64-NEXT: xorl %ecx, %ecx ## encoding: [0x31,0xc9]
+; X64-NEXT: xorl %edx, %edx ## encoding: [0x31,0xd2]
+; X64-NEXT: movl %edi, %eax ## encoding: [0x89,0xf8]
+; X64-NEXT: wrpkru ## encoding: [0x0f,0x01,0xef]
+; X64-NEXT: retq ## encoding: [0xc3]
+ call void @llvm.x86.wrpkru(i32 %src)
ret void
}
define i32 @test_x86_rdpkru() {
-; CHECK-LABEL: test_x86_rdpkru:
-; CHECK: ## %bb.0:
-; CHECK-NEXT: xorl %ecx, %ecx
-; CHECK-NEXT: rdpkru
-; CHECK-NEXT: retq
- %res = call i32 @llvm.x86.rdpkru()
- ret i32 %res
+; X86-LABEL: test_x86_rdpkru:
+; X86: ## %bb.0:
+; X86-NEXT: xorl %ecx, %ecx ## encoding: [0x31,0xc9]
+; X86-NEXT: rdpkru ## encoding: [0x0f,0x01,0xee]
+; X86-NEXT: retl ## encoding: [0xc3]
+;
+; X64-LABEL: test_x86_rdpkru:
+; X64: ## %bb.0:
+; X64-NEXT: xorl %ecx, %ecx ## encoding: [0x31,0xc9]
+; X64-NEXT: rdpkru ## encoding: [0x0f,0x01,0xee]
+; X64-NEXT: retq ## encoding: [0xc3]
+ %res = call i32 @llvm.x86.rdpkru()
+ ret i32 %res
}
More information about the llvm-commits
mailing list