diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-06-07 22:55:05 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-06-07 22:55:05 +0000 |
commit | 7de1d327f134286d8049adc7b06f92447b4bbecd (patch) | |
tree | 6249bb2bebe1dd28ee2d05348f3a4faa0d291d80 /test | |
parent | 1c2b03aae9e56e69d215e9b39928a1340e3ca0c3 (diff) | |
download | external_llvm-7de1d327f134286d8049adc7b06f92447b4bbecd.zip external_llvm-7de1d327f134286d8049adc7b06f92447b4bbecd.tar.gz external_llvm-7de1d327f134286d8049adc7b06f92447b4bbecd.tar.bz2 |
Add missing zextloadi1 to i64 patterns. PR16721.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183587 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/SPARC/64bit.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/SPARC/64bit.ll b/test/CodeGen/SPARC/64bit.ll index c856941..a5ea4d9 100644 --- a/test/CodeGen/SPARC/64bit.ll +++ b/test/CodeGen/SPARC/64bit.ll @@ -161,6 +161,14 @@ define i64 @loads(i64* %p, i32* %q, i32* %r, i16* %s) { ret i64 %x3 } +; CHECK: load_bool +; CHECK: ldub [%i0], %i0 +define i64 @load_bool(i1* %p) { + %a = load i1* %p + %b = zext i1 %a to i64 + ret i64 %b +} + ; CHECK: stores ; CHECK: ldx [%i0+8], [[R:%[goli][0-7]]] ; CHECK: stx [[R]], [%i0+16] |