Mercurial > hg > Members > tobaru > cbc > CbC_llvm
view test/CodeGen/X86/fsgsbase.ll @ 33:e4204d083e25
LLVM 3.5
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 14:32:10 +0900 |
parents | 95c75e76d11b |
children | 803732b1fca8 |
line wrap: on
line source
; RUN: llc < %s -mtriple=x86_64-apple-darwin -march=x86-64 -mcpu=core-avx-i -mattr=fsgsbase | FileCheck %s define i32 @test_x86_rdfsbase_32() { ; CHECK: rdfsbasel %res = call i32 @llvm.x86.rdfsbase.32() ret i32 %res } declare i32 @llvm.x86.rdfsbase.32() nounwind readnone define i32 @test_x86_rdgsbase_32() { ; CHECK: rdgsbasel %res = call i32 @llvm.x86.rdgsbase.32() ret i32 %res } declare i32 @llvm.x86.rdgsbase.32() nounwind readnone define i64 @test_x86_rdfsbase_64() { ; CHECK: rdfsbaseq %res = call i64 @llvm.x86.rdfsbase.64() ret i64 %res } declare i64 @llvm.x86.rdfsbase.64() nounwind readnone define i64 @test_x86_rdgsbase_64() { ; CHECK: rdgsbaseq %res = call i64 @llvm.x86.rdgsbase.64() ret i64 %res } declare i64 @llvm.x86.rdgsbase.64() nounwind readnone define void @test_x86_wrfsbase_32(i32 %x) { ; CHECK: wrfsbasel call void @llvm.x86.wrfsbase.32(i32 %x) ret void } declare void @llvm.x86.wrfsbase.32(i32) nounwind readnone define void @test_x86_wrgsbase_32(i32 %x) { ; CHECK: wrgsbasel call void @llvm.x86.wrgsbase.32(i32 %x) ret void } declare void @llvm.x86.wrgsbase.32(i32) nounwind readnone define void @test_x86_wrfsbase_64(i64 %x) { ; CHECK: wrfsbaseq call void @llvm.x86.wrfsbase.64(i64 %x) ret void } declare void @llvm.x86.wrfsbase.64(i64) nounwind readnone define void @test_x86_wrgsbase_64(i64 %x) { ; CHECK: wrgsbaseq call void @llvm.x86.wrgsbase.64(i64 %x) ret void } declare void @llvm.x86.wrgsbase.64(i64) nounwind readnone