diff options
author | Richard Osborne <richard@xmos.com> | 2011-08-18 13:00:48 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2011-08-18 13:00:48 +0000 |
commit | c4dcf323cc63e82fc0c3d9413ff074eff303c449 (patch) | |
tree | a1a61f2b504f35b7db7693c711576006b1a1998c /test/CodeGen/XCore/misc-intrinsics.ll | |
parent | 10077194ece7fe7201a4a35b1e93a74112aae60a (diff) | |
download | external_llvm-c4dcf323cc63e82fc0c3d9413ff074eff303c449.zip external_llvm-c4dcf323cc63e82fc0c3d9413ff074eff303c449.tar.gz external_llvm-c4dcf323cc63e82fc0c3d9413ff074eff303c449.tar.bz2 |
Add intrinsics for SETEV, GETED, GETET.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137938 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/XCore/misc-intrinsics.ll')
-rw-r--r-- | test/CodeGen/XCore/misc-intrinsics.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGen/XCore/misc-intrinsics.ll b/test/CodeGen/XCore/misc-intrinsics.ll index 458f23f..6d39d77 100644 --- a/test/CodeGen/XCore/misc-intrinsics.ll +++ b/test/CodeGen/XCore/misc-intrinsics.ll @@ -6,6 +6,8 @@ declare i32 @llvm.xcore.crc32(i32, i32, i32) declare %0 @llvm.xcore.crc8(i32, i32, i32) declare i32 @llvm.xcore.zext(i32, i32) declare i32 @llvm.xcore.sext(i32, i32) +declare i32 @llvm.xcore.geted() +declare i32 @llvm.xcore.getet() define i32 @bitrev(i32 %val) { ; CHECK: bitrev: @@ -55,3 +57,19 @@ define i32 @sexti(i32 %a) { %result = call i32 @llvm.xcore.sext(i32 %a, i32 4) ret i32 %result } + +define i32 @geted() { +; CHECK: geted: +; CHECK: get r11, ed +; CHECK-NEXT: mov r0, r11 + %result = call i32 @llvm.xcore.geted() + ret i32 %result +} + +define i32 @getet() { +; CHECK: getet: +; CHECK: get r11, et +; CHECK-NEXT: mov r0, r11 + %result = call i32 @llvm.xcore.getet() + ret i32 %result +} |