| Chris Lattner | 5ec45c5 | 2007-04-25 01:51:33 +0000 | [diff] [blame^] | 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 |  |