diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-07-19 23:13:04 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-07-19 23:13:04 +0000 |
commit | 9445e9aaa0240a897baf464ff89255acdcc7fbc9 (patch) | |
tree | 1d769c299d5d5b0027b30ac5c301c6ff7613d28f /test/CodeGen/PowerPC/small-arguments.ll | |
parent | 087b72d1bceea0ffe414c0e3d54196aafc7769f8 (diff) | |
download | llvm-9445e9aaa0240a897baf464ff89255acdcc7fbc9.tar.gz llvm-9445e9aaa0240a897baf464ff89255acdcc7fbc9.tar.bz2 llvm-9445e9aaa0240a897baf464ff89255acdcc7fbc9.tar.xz |
For PR1553:
Change the keywords for the zext and sext parameter attributes to be
zeroext and signext so they don't conflict with the keywords for the
instructions of the same name. This gets around the ambiguity.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40069 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/small-arguments.ll')
-rw-r--r-- | test/CodeGen/PowerPC/small-arguments.ll | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/CodeGen/PowerPC/small-arguments.ll b/test/CodeGen/PowerPC/small-arguments.ll index e5120473a2..e211e86875 100644 --- a/test/CodeGen/PowerPC/small-arguments.ll +++ b/test/CodeGen/PowerPC/small-arguments.ll @@ -1,25 +1,25 @@ ; RUN: llvm-as < %s | llc -march=ppc32 | not grep {extsh\\|rlwinm} -declare i16 @foo() sext +declare i16 @foo() signext -define i32 @test1(i16 sext %X) { +define i32 @test1(i16 signext %X) { %Y = sext i16 %X to i32 ;; dead ret i32 %Y } -define i32 @test2(i16 zext %X) { +define i32 @test2(i16 zeroext %X) { %Y = sext i16 %X to i32 %Z = and i32 %Y, 65535 ;; dead ret i32 %Z } define void @test3() { - %tmp.0 = call i16 @foo() sext ;; no extsh! + %tmp.0 = call i16 @foo() signext ;; no extsh! %tmp.1 = icmp slt i16 %tmp.0, 1234 br i1 %tmp.1, label %then, label %UnifiedReturnBlock then: - call i32 @test1(i16 0 sext) + call i32 @test1(i16 0 signext) ret void UnifiedReturnBlock: ret void @@ -46,7 +46,7 @@ define i32 @test6(i32* %P) { ret i32 %tmp.2 } -define i16 @test7(float %a) zext { +define i16 @test7(float %a) zeroext { %tmp.1 = fptoui float %a to i16 ret i16 %tmp.1 } |