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
Re-land [openmp] Fix warnings when building on Windows with latest MSVC or Clang...
[llvm-project.git]
/
llvm
/
test
/
CodeGen
/
AVR
/
neg.ll
blob
ddb5832dfd9f251a797bf7a734ee41fa5da8e0b7
1
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2
; RUN: llc < %s -mtriple=avr | FileCheck %s
3
4
define i8 @neg8(i8 %x) {
5
; CHECK-LABEL: neg8:
6
; CHECK: ; %bb.0:
7
; CHECK-NEXT: neg r24
8
; CHECK-NEXT: ret
9
%sub = sub i8 0, %x
10
ret i8 %sub
11
}
12
13
define i16 @neg16(i16 %x) {
14
; CHECK-LABEL: neg16:
15
; CHECK: ; %bb.0:
16
; CHECK-NEXT: neg r25
17
; CHECK-NEXT: neg r24
18
; CHECK-NEXT: sbc r25, r1
19
; CHECK-NEXT: ret
20
%sub = sub i16 0, %x
21
ret i16 %sub
22
}