mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
9445e9aaa0
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
28 lines
872 B
LLVM
28 lines
872 B
LLVM
; RUN: llvm-as < %s | llc -march=x86-64
|
|
|
|
%struct.XDesc = type <{ i32, %struct.OpaqueXDataStorageType** }>
|
|
%struct.OpaqueXDataStorageType = type opaque
|
|
|
|
declare i16 @GetParamDesc(%struct.XDesc*, i32, i32, %struct.XDesc*) signext
|
|
|
|
declare void @r_raise(i64, i8*, ...)
|
|
|
|
define i64 @app_send_event(i64 %self, i64 %event_class, i64 %event_id, i64 %params, i64 %need_retval) {
|
|
entry:
|
|
br i1 false, label %cond_true109, label %bb83.preheader
|
|
|
|
bb83.preheader: ; preds = %entry
|
|
ret i64 0
|
|
|
|
cond_true109: ; preds = %entry
|
|
br i1 false, label %cond_next164, label %cond_true239
|
|
|
|
cond_next164: ; preds = %cond_true109
|
|
%tmp176 = call i16 @GetParamDesc( %struct.XDesc* null, i32 1701999219, i32 1413830740, %struct.XDesc* null ) signext ; <i16> [#uses=0]
|
|
call void (i64, i8*, ...)* @r_raise( i64 0, i8* null )
|
|
unreachable
|
|
|
|
cond_true239: ; preds = %cond_true109
|
|
ret i64 0
|
|
}
|