2 # Some generic xtensa tests
4 if [istarget xtensa*-*-*] then {
5 gas_test_error "j_too_far.s" "" "Check for jump out of range error"
7 set testname "j_too_far.s: error line number reporting"
8 gas_start "j_too_far.s" ""
12 -re ":4: Error:.*too large" { set x1 1 }
13 timeout { perror "timeout\n"; break }
18 if [all_ones $x1] then { pass $testname } else { fail $testname }
21 gas_test "entry_misalign.s" "" "" "Xtensa Entry misalignment"
22 set testname "entry_misalign.s: Force entry misalignment"
23 objdump_start_no_subdir "a.out" "-d -j .text"
27 -re "^.*2:.*entry" { set x1 1 }
28 timeout { perror "timeout\n"; break }
33 if [all_ones $x1] then { pass $testname } else { fail $testname }
36 gas_test "entry_misalign2.s" "" "" "Xtensa Entry misalignment(2)"
37 set testname "entry_misalign2.s: Force entry misalignment(2)"
38 objdump_start_no_subdir "a.out" "-d -j .text"
42 -re "^.*2:.*entry" { set x1 1 }
43 timeout { perror "timeout\n"; break }
48 if [all_ones $x1] then { pass $testname } else { fail $testname }
50 gas_test "entry_align.s" "" "" "Xtensa autoalign entry"
51 set testname "entry_align.s: autoalign entry"
52 objdump_start_no_subdir "a.out" "-d -j .text"
56 -re "^.*4:.*entry" { set x1 1 }
57 timeout { perror "timeout\n"; break }
62 if [all_ones $x1] then { pass $testname } else { fail $testname }
64 gas_test "loop_misalign.s" "" "" "Xtensa Loop misalignment"
65 set testname "loop_misalign.s: Force loop misalignment"
66 objdump_start_no_subdir "a.out" "-d -j .text"
70 -re "^.*0:.*loop" { set x1 1 }
71 timeout { perror "timeout\n"; break }
76 if [all_ones $x1] then { pass $testname } else { fail $testname }
79 gas_test "loop_align.s" "" "" "Xtensa autoalign loop"
80 set testname "loop_align.s: autoalign loop"
81 objdump_start_no_subdir "a.out" "-d -j .text"
85 -re "^.*2:.*loop" { set x1 1 }
86 timeout { perror "timeout\n"; break }
91 if [all_ones $x1] then { pass $testname } else { fail $testname }
96 if [info exists errorInfo] then {