diff options
author | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-12-19 13:52:01 +0000 |
---|---|---|
committer | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-12-19 13:52:01 +0000 |
commit | bcfd12a2344e2fc385847aef1ed722a667bcd1f9 (patch) | |
tree | 020eefaae4fa1243846b35a1a64b24d0de9a8193 /test/CodeGen | |
parent | 7ae1ddeb2fa52c3dc60002fa566df91f9e11e3e3 (diff) | |
download | external_llvm-bcfd12a2344e2fc385847aef1ed722a667bcd1f9.zip external_llvm-bcfd12a2344e2fc385847aef1ed722a667bcd1f9.tar.gz external_llvm-bcfd12a2344e2fc385847aef1ed722a667bcd1f9.tar.bz2 |
Emit direction operand in binary insns that stores in memory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/PIC16/result_direction.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/PIC16/result_direction.ll b/test/CodeGen/PIC16/result_direction.ll new file mode 100644 index 0000000..8549e21 --- /dev/null +++ b/test/CodeGen/PIC16/result_direction.ll @@ -0,0 +1,13 @@ +; RUN: llvm-as < %s | llc -march=pic16 | FileCheck %s + +@a = common global i16 0, align 1 ; <i16*> [#uses=2] + +define void @foo() nounwind { +entry: + %tmp = load i16* @a ; <i16> [#uses=1] + %add = add nsw i16 %tmp, 1 ; <i16> [#uses=1] + store i16 %add, i16* @a +;CHECK: movlw 1 +;CHECK: addwf @a + 0, F + ret void +} |