mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
c3de802ad9
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52373 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
403 B
LLVM
15 lines
403 B
LLVM
; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin | grep mov | count 4
|
|
|
|
define i16 @test(i16* %tmp179) nounwind {
|
|
%tmp180 = load i16* %tmp179, align 2 ; <i16> [#uses=2]
|
|
%tmp184 = and i16 %tmp180, -1024 ; <i16> [#uses=1]
|
|
%tmp186 = icmp eq i16 %tmp184, -32768 ; <i1> [#uses=1]
|
|
br i1 %tmp186, label %bb189, label %bb288
|
|
|
|
bb189: ; preds = %0
|
|
ret i16 %tmp180
|
|
|
|
bb288: ; preds = %0
|
|
ret i16 32
|
|
}
|