2009-09-08 23:54:48 +00:00
|
|
|
; RUN: llc < %s -march=x86-64 > %t
|
2008-06-10 00:36:41 +00:00
|
|
|
; RUN: grep movb %t | count 2
|
2008-07-30 18:23:34 +00:00
|
|
|
; RUN: grep {movzb\[wl\]} %t
|
2006-11-17 20:41:55 +00:00
|
|
|
|
2008-02-21 07:42:26 +00:00
|
|
|
|
2009-07-12 00:46:16 +00:00
|
|
|
define void @handle_vector_size_attribute() nounwind {
|
2006-11-17 20:41:55 +00:00
|
|
|
entry:
|
2008-02-21 07:42:26 +00:00
|
|
|
%tmp69 = load i32* null ; <i32> [#uses=1]
|
|
|
|
switch i32 %tmp69, label %bb84 [
|
|
|
|
i32 2, label %bb77
|
|
|
|
i32 1, label %bb77
|
2006-11-17 20:41:55 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
bb77: ; preds = %entry, %entry
|
2008-02-21 07:42:26 +00:00
|
|
|
%tmp99 = udiv i64 0, 0 ; <i64> [#uses=1]
|
|
|
|
%tmp = load i8* null ; <i8> [#uses=1]
|
|
|
|
%tmp114 = icmp eq i64 0, 0 ; <i1> [#uses=1]
|
2010-06-24 15:04:11 +00:00
|
|
|
br label %cond_true115
|
2006-11-17 20:41:55 +00:00
|
|
|
|
|
|
|
bb84: ; preds = %entry
|
|
|
|
ret void
|
|
|
|
|
|
|
|
cond_true115: ; preds = %bb77
|
2008-02-21 07:42:26 +00:00
|
|
|
%tmp118 = load i8* null ; <i8> [#uses=1]
|
2010-06-24 15:04:11 +00:00
|
|
|
br label %cond_true120
|
2006-11-17 20:41:55 +00:00
|
|
|
|
|
|
|
cond_true120: ; preds = %cond_true115
|
2008-02-21 07:42:26 +00:00
|
|
|
%tmp127 = udiv i8 %tmp, %tmp118 ; <i8> [#uses=1]
|
|
|
|
%tmp127.upgrd.1 = zext i8 %tmp127 to i64 ; <i64> [#uses=1]
|
2006-11-17 20:41:55 +00:00
|
|
|
br label %cond_next129
|
|
|
|
|
|
|
|
cond_next129: ; preds = %cond_true120, %cond_true115
|
2010-06-24 15:04:11 +00:00
|
|
|
%iftmp.30.0 = phi i64 [ %tmp127.upgrd.1, %cond_true120 ] ; <i64> [#uses=1]
|
2008-02-21 07:42:26 +00:00
|
|
|
%tmp132 = icmp eq i64 %iftmp.30.0, %tmp99 ; <i1> [#uses=1]
|
|
|
|
br i1 %tmp132, label %cond_false148, label %cond_next136
|
2006-11-17 20:41:55 +00:00
|
|
|
|
|
|
|
cond_next136: ; preds = %cond_next129, %bb77
|
|
|
|
ret void
|
|
|
|
|
|
|
|
cond_false148: ; preds = %cond_next129
|
|
|
|
ret void
|
|
|
|
}
|