aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/IntrinsicsPowerPC.td
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-04-05 00:03:03 +0000
committerChris Lattner <sabre@nondot.org>2006-04-05 00:03:03 +0000
commit1c89482e46b56d59fd3b23a764bf11b72784ee26 (patch)
tree2a36b711317f7bb9a4578e6603e18479b3b0fbbc /include/llvm/IntrinsicsPowerPC.td
parent8b4684247aa23cb3b022de9a45b009e66aa9b51d (diff)
downloadexternal_llvm-1c89482e46b56d59fd3b23a764bf11b72784ee26.zip
external_llvm-1c89482e46b56d59fd3b23a764bf11b72784ee26.tar.gz
external_llvm-1c89482e46b56d59fd3b23a764bf11b72784ee26.tar.bz2
Add m[tf]vscr intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27420 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IntrinsicsPowerPC.td')
-rw-r--r--include/llvm/IntrinsicsPowerPC.td7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/IntrinsicsPowerPC.td b/include/llvm/IntrinsicsPowerPC.td
index 981e88c..e369972 100644
--- a/include/llvm/IntrinsicsPowerPC.td
+++ b/include/llvm/IntrinsicsPowerPC.td
@@ -66,6 +66,13 @@ class PowerPC_Vec_WWW_Intrinsic<string GCCIntSuffix>
// PowerPC Altivec Intrinsic Definitions.
let TargetPrefix = "ppc" in { // All intrinsics start with "llvm.ppc.".
+ // VSCR access.
+ def int_ppc_altivec_mfvscr : GCCBuiltin<"__builtin_altivec_mfvscr">,
+ Intrinsic<[llvm_v8i16_ty], [IntrReadMem]>;
+ def int_ppc_altivec_mtvscr : GCCBuiltin<"__builtin_altivec_mtvscr">,
+ Intrinsic<[llvm_void_ty, llvm_v4i32_ty], [IntrWriteMem]>;
+
+
// Loads. These don't map directly to GCC builtins because they represent the
// source address with a single pointer.
def int_ppc_altivec_lvx :