diff options
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] |