~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/AArch64/arm64-fast-isel-store.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc -mtriple=aarch64-unknown-unknown                             -verify-machineinstrs < %s | FileCheck %s
 
2
; RUN: llc -mtriple=aarch64-unknown-unknown -fast-isel -fast-isel-abort=1 -verify-machineinstrs < %s | FileCheck %s
 
3
 
 
4
define void @store_i8(i8* %a) {
 
5
; CHECK-LABEL: store_i8
 
6
; CHECK: strb  wzr, [x0]
 
7
  store i8 0, i8* %a
 
8
  ret void
 
9
}
 
10
 
 
11
define void @store_i16(i16* %a) {
 
12
; CHECK-LABEL: store_i16
 
13
; CHECK: strh  wzr, [x0]
 
14
  store i16 0, i16* %a
 
15
  ret void
 
16
}
 
17
 
 
18
define void @store_i32(i32* %a) {
 
19
; CHECK-LABEL: store_i32
 
20
; CHECK: str  wzr, [x0]
 
21
  store i32 0, i32* %a
 
22
  ret void
 
23
}
 
24
 
 
25
define void @store_i64(i64* %a) {
 
26
; CHECK-LABEL: store_i64
 
27
; CHECK: str  xzr, [x0]
 
28
  store i64 0, i64* %a
 
29
  ret void
 
30
}