repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git]
/
llvm
/
test
/
CodeGen
/
NVPTX
/
imad.ll
blob
2ab94106a8a2806cd632a160a1091ecc1e893574
1
; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 | FileCheck %s
2
; RUN: %if ptxas %{ llc < %s -march=nvptx64 -mcpu=sm_20 | %ptxas-verify %}
3
4
; CHECK: imad
5
define i32 @imad(i32 %a, i32 %b, i32 %c) {
6
; CHECK: mad.lo.s32
7
%val0 = mul i32 %a, %b
8
%val1 = add i32 %val0, %c
9
ret i32 %val1
10
}