Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/Mips/ctlz-v.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 < %s -march=mipsel -mcpu=mips32r2 | FileCheck %s -check-prefix=MIPS32 | |
2 ; RUN: llc < %s -march=mips64el -mcpu=mips64r2 | FileCheck %s -check-prefix=MIPS64 | |
3 | |
4 declare <2 x i32> @llvm.ctlz.v2i32(<2 x i32>, i1) | |
5 | |
6 define <2 x i32> @ctlzv2i32(<2 x i32> %x) { | |
7 entry: | |
8 ; MIPS32: clz $2, $4 | |
9 ; MIPS32: jr $ra | |
10 ; MIPS32: clz $3, $5 | |
11 | |
12 ; MIPS64: clz $2, $4 | |
13 ; MIPS64: jr $ra | |
14 ; MIPS64: clz $3, $5 | |
15 | |
16 %ret = call <2 x i32> @llvm.ctlz.v2i32(<2 x i32> %x, i1 true) | |
17 ret <2 x i32> %ret | |
18 } | |
19 |