1 ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
2 ; RUN: verify-uselistorder %s
6 define <4 x i32> @foo(<4 x i32> %a, <4 x i32> %b) nounwind {
8 %cmp = shl <4 x i32> %a, %b ; <4 x i32> [#uses=1]
14 define <4 x i32> @bar(<4 x i32> %a, <4 x i32> %b) nounwind {
16 %cmp = lshr <4 x i32> %a, %b ; <4 x i32> [#uses=1]
22 define <4 x i32> @baz(<4 x i32> %a, <4 x i32> %b) nounwind {
24 %cmp = ashr <4 x i32> %a, %b ; <4 x i32> [#uses=1]
28 ; Constant expressions: these should be folded.
31 ; CHECK: ret <2 x i64> <i64 40, i64 192>
32 define <2 x i64> @foo_ce() nounwind {
33 ret <2 x i64> shl (<2 x i64> <i64 5, i64 6>, <2 x i64> <i64 3, i64 5>)
37 ; CHECK: ret <2 x i64> <i64 42, i64 11>
38 define <2 x i64> @bar_ce() nounwind {
39 ret <2 x i64> lshr (<2 x i64> <i64 340, i64 380>, <2 x i64> <i64 3, i64 5>)
43 ; CHECK: ret <2 x i64> <i64 71, i64 12>
44 define <2 x i64> @baz_ce() nounwind {
45 ret <2 x i64> ashr (<2 x i64> <i64 573, i64 411>, <2 x i64> <i64 3, i64 5>)