Eric Christopher | 824f42f | 2015-05-12 01:26:05 +0000 | [diff] [blame^] | 1 | ; RUN: llc < %s |
Duncan Sands | d21581e | 2009-03-29 13:51:06 +0000 | [diff] [blame] | 2 | ; PR3899 |
| 3 | |
Dan Gohman | fb41936 | 2010-01-05 17:55:26 +0000 | [diff] [blame] | 4 | @m = external global <2 x double> |
Duncan Sands | d21581e | 2009-03-29 13:51:06 +0000 | [diff] [blame] | 5 | |
Eric Christopher | 824f42f | 2015-05-12 01:26:05 +0000 | [diff] [blame^] | 6 | define double @vector_ex() nounwind #0 { |
David Blaikie | a79ac14 | 2015-02-27 21:17:42 +0000 | [diff] [blame] | 7 | %v = load <2 x double>, <2 x double>* @m |
Duncan Sands | d21581e | 2009-03-29 13:51:06 +0000 | [diff] [blame] | 8 | %x = extractelement <2 x double> %v, i32 1 |
| 9 | ret double %x |
| 10 | } |
Eric Christopher | 824f42f | 2015-05-12 01:26:05 +0000 | [diff] [blame^] | 11 | |
| 12 | ; Soft-float attribute so that targets that pay attention to soft float will |
| 13 | ; make floating point types illegal and we'll exercise the legalizer code. |
| 14 | attributes #0 = { "use-soft-float" = "true" } |