source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/str_trunc.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 435 bytes
Line 
1; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s
2
3define void @test1(i32 %v, i16* %ptr) {
4        %tmp = trunc i32 %v to i16              ; <i16> [#uses=1]
5        store i16 %tmp, i16* %ptr
6        ret void
7}
8
9define void @test2(i32 %v, i8* %ptr) {
10        %tmp = trunc i32 %v to i8               ; <i8> [#uses=1]
11        store i8 %tmp, i8* %ptr
12        ret void
13}
14
15; CHECK: strh
16; CHECK-NOT: strh
17
18; CHECK: strb
19; CHECK-NOT: strb
20
Note: See TracBrowser for help on using the repository browser.