Jyotsna Verma | ec61366 | 2013-03-14 19:08:03 +0000 | [diff] [blame] | 1 | ; RUN: llc -march=hexagon -mcpu=hexagonv4 < %s |
| 2 | ; Check that the mis-aligned load doesn't cause compiler to assert. |
| 3 | |
| 4 | declare i32 @_hi(i64) #1 |
| 5 | @temp1 = common global i32 0, align 4 |
| 6 | |
| 7 | define i32 @CSDRSEARCH_executeSearchManager() #0 { |
| 8 | entry: |
| 9 | %temp = alloca i32, align 4 |
David Blaikie | a79ac14 | 2015-02-27 21:17:42 +0000 | [diff] [blame] | 10 | %0 = load i32, i32* @temp1, align 4 |
Jyotsna Verma | ec61366 | 2013-03-14 19:08:03 +0000 | [diff] [blame] | 11 | store i32 %0, i32* %temp, align 4 |
| 12 | %1 = bitcast i32* %temp to i64* |
David Blaikie | a79ac14 | 2015-02-27 21:17:42 +0000 | [diff] [blame] | 13 | %2 = load i64, i64* %1, align 8 |
Jyotsna Verma | ec61366 | 2013-03-14 19:08:03 +0000 | [diff] [blame] | 14 | %call = call i32 @_hi(i64 %2) |
| 15 | ret i32 %call |
| 16 | } |