Ignoring per-user file.
[oota-llvm.git] / test / CodeGen / X86 / 2006-11-17-IllegalMove.ll
1 ; RUN: llvm-as < %s | llc -march=x86-64 | \
2 ; RUN:   grep movb | count 2
3 ; RUN: llvm-as < %s | llc -march=x86-64 | \
4 ; RUN:   grep movzbw
5
6
7 define void @handle_vector_size_attribute() {
8 entry:
9         %tmp69 = load i32* null         ; <i32> [#uses=1]
10         switch i32 %tmp69, label %bb84 [
11                  i32 2, label %bb77
12                  i32 1, label %bb77
13         ]
14
15 bb77:           ; preds = %entry, %entry
16         %tmp99 = udiv i64 0, 0          ; <i64> [#uses=1]
17         %tmp = load i8* null            ; <i8> [#uses=1]
18         %tmp114 = icmp eq i64 0, 0              ; <i1> [#uses=1]
19         br i1 %tmp114, label %cond_true115, label %cond_next136
20
21 bb84:           ; preds = %entry
22         ret void
23
24 cond_true115:           ; preds = %bb77
25         %tmp118 = load i8* null         ; <i8> [#uses=1]
26         br i1 false, label %cond_next129, label %cond_true120
27
28 cond_true120:           ; preds = %cond_true115
29         %tmp127 = udiv i8 %tmp, %tmp118         ; <i8> [#uses=1]
30         %tmp127.upgrd.1 = zext i8 %tmp127 to i64                ; <i64> [#uses=1]
31         br label %cond_next129
32
33 cond_next129:           ; preds = %cond_true120, %cond_true115
34         %iftmp.30.0 = phi i64 [ %tmp127.upgrd.1, %cond_true120 ], [ 0, %cond_true115 ]          ; <i64> [#uses=1]
35         %tmp132 = icmp eq i64 %iftmp.30.0, %tmp99               ; <i1> [#uses=1]
36         br i1 %tmp132, label %cond_false148, label %cond_next136
37
38 cond_next136:           ; preds = %cond_next129, %bb77
39         ret void
40
41 cond_false148:          ; preds = %cond_next129
42         ret void
43 }