Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/AArch64/arm64-aapcs-be.ll @ 77:54457678186b LLVM3.6
LLVM 3.6
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 08 Sep 2014 22:06:00 +0900 |
parents | |
children | 60c9769439b8 |
comparison
equal
deleted
inserted
replaced
34:e874dbf0ad9d | 77:54457678186b |
---|---|
1 ; RUN: llc -mtriple=aarch64_be-none-eabi -fast-isel=false < %s | FileCheck %s | |
2 ; RUN: llc -mtriple=aarch64_be-none-eabi -fast-isel=true < %s | FileCheck %s | |
3 | |
4 ; Check narrow argument passing via stack - callee end | |
5 define i32 @test_narrow_args_callee(i64 %x0, i64 %x1, i64 %x2, i64 %x3, i64 %x4, i64 %x5, i64 %x6, i64 %x7, i8 %c, i16 %s) #0 { | |
6 entry: | |
7 %conv = zext i8 %c to i32 | |
8 %conv1 = sext i16 %s to i32 | |
9 %add = add nsw i32 %conv1, %conv | |
10 ; CHECK-LABEL: test_narrow_args_callee: | |
11 ; CHECK-DAG: ldrb w{{[0-9]}}, [sp, #7] | |
12 ; CHECK-DAG: ldr{{s?}}h w{{[0-9]}}, [sp, #14] | |
13 ret i32 %add | |
14 } | |
15 | |
16 ; Check narrow argument passing via stack - caller end | |
17 define i32 @test_narrow_args_caller() #0 { | |
18 entry: | |
19 %call = tail call i32 @test_narrow_args_callee(i64 undef, i64 undef, i64 undef, i64 undef, i64 undef, i64 undef, i64 undef, i64 undef, i8 8, i16 9) | |
20 ; CHECK-LABEL: test_narrow_args_caller: | |
21 ; CHECK-DAG: strh w{{[0-9]}}, [sp, #14] | |
22 ; CHECK-DAG: strb w{{[0-9]}}, [sp, #7] | |
23 ret i32 %call | |
24 } |