Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/AArch64/rotate.ll @ 100:7d135dc70f03 LLVM 3.9
LLVM 3.9
author | Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 26 Jan 2016 22:53:40 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
96:6418606d0ead | 100:7d135dc70f03 |
---|---|
1 ; RUN: llc < %s -mtriple=aarch64--linux-gnueabihf | FileCheck %s | |
2 | |
3 ;; This used to cause a backend crash about not being able to | |
4 ;; select ROTL. Make sure if generates the basic ushr/shl. | |
5 define <2 x i64> @testcase(<2 x i64>* %in) { | |
6 ; CHECK-LABEL: testcase | |
7 ; CHECK: ushr {{v[0-9]+}}.2d | |
8 ; CHECK: shl {{v[0-9]+}}.2d | |
9 %1 = load <2 x i64>, <2 x i64>* %in | |
10 %2 = lshr <2 x i64> %1, <i64 8, i64 8> | |
11 %3 = shl <2 x i64> %1, <i64 56, i64 56> | |
12 %4 = or <2 x i64> %2, %3 | |
13 ret <2 x i64> %4 | |
14 } |