diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-07-31 02:57:37 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-07-31 02:57:37 +0000 |
commit | 1d3d230861360a31a1fc8fba70650bae784cdb1f (patch) | |
tree | 58715d49baaa4072b55d6099f1cb0f8b3f686795 /test/Assembler/2007-07-30-AutoUpgradeZextSext.ll | |
parent | 6f62af6e64716a5add36531ccd1ffdfab7391224 (diff) | |
download | llvm-1d3d230861360a31a1fc8fba70650bae784cdb1f.tar.gz llvm-1d3d230861360a31a1fc8fba70650bae784cdb1f.tar.bz2 llvm-1d3d230861360a31a1fc8fba70650bae784cdb1f.tar.xz |
For PR1553:
Make the AsmParser auto-upgrade the old zext and sext
keywords for parameter attributes and handle the
end-of-line ambiguity.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40610 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler/2007-07-30-AutoUpgradeZextSext.ll')
-rw-r--r-- | test/Assembler/2007-07-30-AutoUpgradeZextSext.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Assembler/2007-07-30-AutoUpgradeZextSext.ll b/test/Assembler/2007-07-30-AutoUpgradeZextSext.ll new file mode 100644 index 0000000000..ea2db4414f --- /dev/null +++ b/test/Assembler/2007-07-30-AutoUpgradeZextSext.ll @@ -0,0 +1,12 @@ +; Test that upgrading zext/sext attributes to zeroext and signext +; works correctly. +; PR1553 +; RUN: llvm-as < %s > /dev/null + +define i32 @bar() { + %t = call i8 @foo( i8 10 sext ) zext + %x = zext i8 %t to i32 + ret i32 %x +} + +declare i8 @foo(i8 signext ) zeroext |