-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PUSHPOW2, PUSHPOW2DEC, PUSHNEGPOW2
- Loading branch information
Dmitry Borisenkov
committed
Nov 19, 2020
1 parent
e48c04b
commit b46c56a
Showing
3 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
; RUN: llc -O3 < %s -march=tvm -filetype=asm | FileCheck %s | ||
target datalayout = "E-S257-i1:257:257-i8:257:257-i16:257:257-i32:257:257-i64:257:257-i257:257:257-p:257:257-a:257:257" | ||
target triple = "tvm" | ||
|
||
; CHECK-LABEL: ret1 | ||
define i257 @ret1() { | ||
ret i257 128 | ||
} | ||
|
||
; CHECK-LABEL: ret2 | ||
define i257 @ret2() { | ||
ret i257 -256 | ||
} | ||
|
||
; CHECK-LABEL: ret3 | ||
define i257 @ret3() { | ||
ret i257 255 | ||
} | ||
|
||
; CHECK-LABEL: retneg | ||
define i257 @retneg() { | ||
ret i257 0 | ||
} |