Home | History | Annotate | Download | only in ARM
      1 ; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s
      2 
      3 define 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 
      9 define 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 
     21