1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-- -mattr=rdpid | FileCheck %s --check-prefix=CHECK --check-prefix=X86-64
3 ; RUN: llc < %s -mtriple=i686-- -mattr=rdpid | FileCheck %s --check-prefix=CHECK --check-prefix=X86
5 define i32 @test_builtin_rdpid() {
6 ; X86-64-LABEL: test_builtin_rdpid:
8 ; X86-64-NEXT: rdpid %rax
9 ; X86-64-NEXT: # kill: def $eax killed $eax killed $rax
12 ; X86-LABEL: test_builtin_rdpid:
14 ; X86-NEXT: rdpid %eax
16 %1 = tail call i32 @llvm.x86.rdpid()
20 declare i32 @llvm.x86.rdpid()