More cleanups for MachineOperand:
[oota-llvm.git] / test / CFrontend / block-copy.c
1 /* RUN: %llvmgcc %s -S -o - -emit-llvm -O3 | grep {call.*memcpy}
2
3  This should compile into a memcpy from a global, not 128 stores. */
4
5
6
7 void foo();
8
9 float bar() {
10         float lookupTable[] = {-1,-1,-1,0, -1,-1,0,-1, -1,-1,0,1, -1,-1,1,0,
11                                                    -1,0,-1,-1, -1,0,-1,1, -1,0,1,-1, -1,0,1,1,
12                                                    -1,1,-1,0, -1,1,0,-1, -1,1,0,1, -1,1,1,0,
13                                                    0,-1,-1,-1, 0,-1,-1,1, 0,-1,1,-1, 0,-1,1,1,
14                                                    1,-1,-1,0, 1,-1,0,-1, 1,-1,0,1, 1,-1,1,0,
15                                                    1,0,-1,-1, 1,0,-1,1, 1,0,1,-1, 1,0,1,1,
16                                                    1,1,-1,0, 1,1,0,-1, 1,1,0,1, 1,1,1,0,
17                                                    0,1,-1,-1, 0,1,-1,1, 0,1,1,-1, 0,1,1,1};
18    foo(lookupTable);
19 }
20