diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-08-31 18:19:50 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-08-31 18:19:50 +0000 |
| commit | 0e6b11da03f94db195c332f429cce10f4217c32a (patch) | |
| tree | ea846fdf023fcf3bd5e3fd1c2e6c9f49733ea6ec /llvm/test/Regression | |
| parent | 2bd2af8ecd18e690984ef7c84230db53d0752900 (diff) | |
| download | bcm5719-llvm-0e6b11da03f94db195c332f429cce10f4217c32a.tar.gz bcm5719-llvm-0e6b11da03f94db195c332f429cce10f4217c32a.zip | |
Add a testcase for nate's patch
llvm-svn: 23172
Diffstat (limited to 'llvm/test/Regression')
| -rw-r--r-- | llvm/test/Regression/CodeGen/PowerPC/small-arguments.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/Regression/CodeGen/PowerPC/small-arguments.ll b/llvm/test/Regression/CodeGen/PowerPC/small-arguments.ll new file mode 100644 index 00000000000..9195d0f2677 --- /dev/null +++ b/llvm/test/Regression/CodeGen/PowerPC/small-arguments.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | llc -march=ppc32 | not grep 'extsh\|rlwinm r3, r3' + +int %test1(short %X) { + %Y = cast short %X to int ;; dead + ret int %Y +} + +int %test2(ushort %X) { + %Y = cast ushort %X to int + %Z = and int %Y, 65535 ;; dead + ret int %Z +} |

